spring beanfactory usage example