XmlDefinitionManager xmlDefinitionManager = new XmlDefinitionManager();
Properties properties = PropertiesLoaderUtils.loadClassPathProperties(
xmlDefinitionMappingsLocation, null);
PropertiesXmlDefinitionParser propertiesXmlDefinitionParser = new PropertiesXmlDefinitionParser();
xmlDefinitionManager
.addDefinitionMappings(propertiesXmlDefinitionParser
.parser(properties));
delegatingResolver.setXmlDefinitionManager(xmlDefinitionManager);
documentLoader.setEntityResolver(delegatingResolver);
ClassPathResource resource = new ClassPathResource(