I am trying to go from xml-configuration to java-configuration for a spring project. I have managed to migrate everything except for this: