hobj.init(c, n); Scriptable p = c.getPrototype(prototype); if (p != null) { hobj.setPrototype(p); engine.invoke(hobj, "constructor", args, false);
hobj.init(c, n); Scriptable p = c.getPrototype(prototype); if (p != null) { hobj.setPrototype(p); engine.invoke(hobj, "constructor", args, false); }  return hobj;
    public static Object hopObjectConstructor(Context cx, Object[] args,                                              Function ctorObj, boolean inNewExpr)                         throws ScriptingException {        RhinoEngine engine = (RhinoEngine) cx.getThreadLocal("engine");        RhinoCore c = engine.core;        String prototype = ((FunctionObject) ctorObj).getFunctionName();        INode n = new helma.objectmodel.db.Node(prototype, prototype,                                                c.app.getWrappedNodeManager());        HopObject hobj = new HopObject(prototype);        hobj.init(c, n);        Scriptable p = c.getPrototype(prototype);        if (p != null) {            hobj.setPrototype(p);            engine.invoke(hobj, "constructor", args, false);        }        return hobj;    }