Convert Spring XML configuration to Java