Add configuration to spring xml