put("app", this, cx.toObject(new ApplicationBean(app), this)); put("Xml", this, cx.toObject(new XmlObject(core), this));
put("app", this, Context.toObject(new ApplicationBean(app), this)); put("Xml", this, Context.toObject(new XmlObject(core), this));
    public GlobalObject(RhinoCore core, Application app, Context cx)                 throws PropertyException {        this.core = core;        this.app = app;        String[] globalFuncs = {                                   "renderSkin", "renderSkinAsString", "getProperty",                                   "authenticate", "createSkin", "format", "encode",                                   "encodeXml", "encodeForm", "stripTags",                                   "getDBConnection", "getURL", "write", "writeln"                               };        defineFunctionProperties(globalFuncs, GlobalObject.class, 0);        put("app", this, cx.toObject(new ApplicationBean(app), this));        put("Xml", this, cx.toObject(new XmlObject(core), this));    }