try {
beanFactory = new XmlBeanFactory(new ByteArrayResource(configurationXML.getBytes()));
} catch (BeansException be) {
logger.error("Unable to load Tatool file.", be);
String[] errors = be.getMessage().split(";");
throw new CreationException(errors[errors.length-1]);
}
// see whether we have properties
if (beanFactory.containsBean("moduleProperties")) {
Map<String, String> properties = (Map<String, String>) beanFactory.getBean("moduleProperties");