Node p = parent; while (p != null) { p = p.parentHandle == null ? null : p.parentHandle.getNode(nmgr); if (p == this) {   return; } }
    protected void setParent(Node parent) {        parentHandle = (parent == null) ? null : parent.getHandle();    }