releaseNode (n); if (n.getParent () == this) {
if (parent == this) {
    public void removeNode (INode node) {	nmgr.logEvent ("removing: "+ node);	Node n = (Node) node;	checkWriteLock ();	n.checkWriteLock ();	releaseNode (n);	if (n.getParent () == this) {                 n.deepRemoveNode ();	} else {	    // removed just a link, not the main node.	    if (n.links != null) {	        n.links.removeElement (this.id);	        if (n.state == CLEAN) n.markAs (MODIFIED);	    }	}    }