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());
for (Object node : delegateElement.content()) {
xmlWriter.write(node);
}
xmlWriter.flush();
configuration = stringWriter.toString();
}
catch (IOException e) {
jpdlReader.addWarning("io problem while parsing the configuration of "
+ delegateElement.asXML());