configType = delegateElement.attributeValue("config-type");
if ( delegateElement.hasContent() ) {
try {
StringWriter stringWriter = new StringWriter();
// when parsing, it could be to store the config in the database, so we want to make the configuration compact
XMLWriter xmlWriter = new XMLWriter( stringWriter, OutputFormat.createCompactFormat() );
Iterator iter = delegateElement.content().iterator();
while (iter.hasNext()) {
Object node = iter.next();
xmlWriter.write( node );
}
xmlWriter.flush();
configuration = stringWriter.toString();
} catch (IOException e) {
jpdlReader.addWarning("io problem while parsing the configuration of "+delegateElement.asXML());
}
}