reader.setValidating(false);
}
};
// Handle properties in configuration
PropertyPlaceholderConfigurer configurator =
new PropertyPlaceholderConfigurer();
//convert dictionary to properties. Is there a better way?
Properties props = new Properties();
Enumeration elements = properties.keys();
while (elements.hasMoreElements()) {
Object key = elements.nextElement();
props.put(key, properties.get(key));
}
configurator.setProperties(props);
configurator.setIgnoreUnresolvablePlaceholders(true);
ctx.addBeanFactoryPostProcessor(configurator);
ctx.refresh();