Element parElement = domElement.getParentElement();
while(parElement!=null) {
indent.append(" ");
parElement = parElement.getParentElement();
}
domElement.addNode(new Text("\n "+indent.toString()));
element = domElement.addNode(element);
domElement.addNode(new Text("\n"+indent.toString()));
JcrNode childNode = new JcrNode(this, element, null);
effectiveUnderlying.save();
}