fixes #585 a problem with the way certain factories are used in spring. More specificaly the "Activiti engine" library, but other libraries might encounter the same problems.
Merge pull request #603 from SnakeSVx/master

Fix for issue #585 - RESTEasy SpringBeanProcessor cannot support factory bean's factory method