Create BeanFactory.java