try {
d = ConfigAsXmlHelper.toXml(config);
} catch (Exception e) {
LOGGER.error("Cannot convert {} to Xml format {}", config, e.getMessage());
LOGGER.debug("Stack trace", e);
throw new PersistenceException(e.getMessage(), e);
}
Configuration c = new Configuration();
c.setId(config.getId());