Refactor from xml configuration to java configuration.
Retractor dependencies to spring 4.0.