some refactoring, added another config style example for using spring import xml