http://stackoverflow.com/questions/16569091/is-it-possible-to-inject-a-bean-defined-with-component-in-a-xml-defined-bean