POC with spring inject of @Resource
Add an option to generate a factory for Spring