writeElement("changeType", entry.changeType().toString());
NodeRef oldObject = entry.getOldObject();
NodeRef newObject = entry.getNewObject();
if (oldObject == null) {
writeElement("newPath", newObject.path());
writeElement("newObjectId", newObject.objectId().toString());
writeElement("path", "");
writeElement("oldObjectId", ObjectId.NULL.toString());
} else if (newObject == null) {
writeElement("newPath", "");
writeElement("newObjectId", ObjectId.NULL.toString());