int nodeNr = builder.startElement(VersioningTrigger.ELEMENT_VERSION, null);
VersioningTrigger.writeProperties(receiver, properties);
Diff diff = new StandardDiff(context.getBroker());
diff.diff(doc1, doc2);
diff.diff2XML(receiver);
builder.endElement();
return builder.getDocument().getNode(nodeNr);
} catch (SAXException e) {
throw new XPathException(this, "Caugt error while generating diff: " + e.getMessage(), e);