DOMResult result = new DOMResult(doc);
XMLDocument xmlDoc = xmlHelper.createDocument(source, elementName.getNamespaceURI(), elementName.getLocalPart());
xmlHelper.save(xmlDoc, result, null);
return doc.getDocumentElement();
} catch (Exception e) {
throw new TransformationException(e);
}
}