Merge pull request #2 from atomota/master

Avoid NPE for beans which were created via factory bean
Update pom.xml

Change Version.