Project migrated from xml configuration to Java Config