nmgr.logEvent ("removing: "+ node);
    public void removeNode (INode node) {	nmgr.logEvent ("removing: "+ node);	Node n = (Node) node;	checkWriteLock ();	n.checkWriteLock ();		// need to query parent before releaseNode is called, since this may change the parent	// to the next option described in the type.properties _parent info	INode parent = n.getParent ();	releaseNode (n);	if (parent == this) {                 n.deepRemoveNode ();	} else {	    // removed just a link, not the main node.	    if (n.links != null) {	        n.links.remove (getHandle ());	        if (n.state == CLEAN) n.markAs (MODIFIED);	    }	}    }