esn = new ESNode (op, evaluator, n, this);
DbMapping dbm = n.getDbMapping (); if (dbm != null && dbm.isInstanceOf ("user")) esn = new ESUser (n, this, null); else esn = new ESNode (op, evaluator, n, this);
    public ESNode getNodeWrapper (INode n) {        if (n == null)            return null;        ESNode esn = (ESNode) objectcache.get (n);        if (esn == null || esn.getNode() != n) {            String protoname = n.getPrototype ();            ObjectPrototype op = null;            // set the DbMapping of the node according to its prototype.            // this *should* be done on the objectmodel level, but isn't currently            // for embedded nodes since there's not enough type info at the objectmodel level            // for those nodes.            if (protoname != null && protoname.length() > 0 && n.getDbMapping () == null) {                n.setDbMapping (app.getDbMapping (protoname));            }            op = getPrototype (protoname);            // no prototype found for this node?            if (op == null)                op = esNodePrototype;            esn = new ESNode (op, evaluator, n, this);            objectcache.put (n, esn);            // app.logEvent ("Wrapper for "+n+" created");        }        return esn;    }