if (node instanceof helma.objectmodel.db.Node) handle = ((helma.objectmodel.db.Node) node).getHandle ();
if (node instanceof Node) handle = ((Node) node).getHandle ();
    public void setNode (INode node) {	user.setNode (node);	if (node != null) {	    this.node = node;	} else {	    // user.getNode will never return null. If the node is set to null (=user logged out)	    // it will user the original transient cache node again.	    this.node = user.getNode ();	}	// set node handle to wrapped node	if (node instanceof helma.objectmodel.db.Node)	    handle = ((helma.objectmodel.db.Node) node).getHandle ();	else	    handle = null;	// we don't take over the transient cache from the node,	// because we always stick to the one from the user object.    }