log.debug("Transformation result : " + result);
}
// replace the sourceNode with the result.
sourceNode.insertSiblingAfter(result);
sourceNode.detach();
} catch (TransformerException e) {
handleException("Error performing XSLT transformation " + xsltKey, e);
} catch (XMLStreamException e) {
handleException("Error building result from XSLT transformation", e);