Migration to Spring configuration to XML