if (dbm != null) { try {   RequestEvaluator reval = nmgr.nmgr.app.getCurrentRequestEvaluator(); if (reval != null) { reval.invokeDirectFunction(this, "onInit", RequestEvaluator.EMPTY_ARGS); } } catch (Exception x) { nmgr.nmgr.app.logError("Error invoking onInit()", x); } }
    public synchronized void init(DbMapping dbm, String id, String name, String prototype,                Hashtable propMap, WrappedNodeManager nmgr) {        this.nmgr = nmgr;        this.dbmap = dbm;        this.prototype = prototype;        this.id = id;        this.name = name;        // If name was not set from resultset, create a synthetical name now.        if ((name == null) || (name.length() == 0)) {            this.name = prototype + " " + id;        }        this.propMap = propMap;        // set lastmodified and created timestamps and mark as clean        created = lastmodified = System.currentTimeMillis();        if (state != CLEAN) {            markAs(CLEAN);        }        // Invoke onInit() if it is defined by this Node's prototype        if (dbm != null) {            try {                // We need to reach deap into helma.framework.core to invoke onInit(),                // but the functionality is neat so we got to be strong here.                RequestEvaluator reval = nmgr.nmgr.app.getCurrentRequestEvaluator();                if (reval != null) {                    reval.invokeDirectFunction(this, "onInit", RequestEvaluator.EMPTY_ARGS);                }            } catch (Exception x) {                nmgr.nmgr.app.logError("Error invoking onInit()", x);            }        }    }