BeanFactory Example with Maven