spring beanFactory createBean usage example