if (config == null) {
return;
}
StringWriter writer = new StringWriter();
AntrunXmlPlexusConfigurationWriter xmlWriter = new AntrunXmlPlexusConfigurationWriter();
xmlWriter.write(config, writer);
Element root = new SAXReader().read(
new StringReader(writer.toString())).getRootElement();
root.detach();
elem.add(root);
} catch (Exception e) {