chnaged to beanfactory; added more snippets