if (effectiveUnderlying==null) {
throw new IllegalArgumentException("effectiveUnderlying must not be null");
}
Element element = new Element(nodeName);
if (nodeType!=null) {
element.addAttribute("jcr:primaryType", nodeType);
}
StringBuffer indent = new StringBuffer();
Element parElement = domElement.getParentElement();
while(parElement!=null) {
indent.append(" ");