dbmap = node.getDbMapping ();
    protected void rewrap (INode newnode) {        // IServer.getLogger().log ("rewrapping "+this+" from "+node+" to "+newnode);        if (newnode == null)            throw new RuntimeException ("Non-consistent check-in detected in rewrap ()");        INode oldnode = node;        if (oldnode == newnode) {            // IServer.getLogger().log ("loop detected or new peers unchanged in rewrap");            return;        }        // set node and nodeID to new node        node = newnode;        nodeID = node.getID ();        int l = oldnode.numberOfNodes ();        for (int i=0; i<l; i++) {            INode next = oldnode.getSubnodeAt (i);            ESNode esn = eval.getNodeWrapperFromCache (next);            // IServer.getLogger().log ("rewrapping node: "+next+" -> "+esn);            if (esn != null) {                esn.rewrap (newnode.getSubnodeAt (i));            }        }        for (Enumeration e=oldnode.properties (); e.hasMoreElements (); ) {            IProperty p = oldnode.get ((String) e.nextElement (), false);            if (p != null && p.getType () == IProperty.NODE) {            	   INode next = p.getNodeValue ();                ESNode esn = eval.getNodeWrapperFromCache (next);                if (esn != null) {                    esn.rewrap (newnode.getNode (p.getName (), false));                }            }        }    }