Namespace localNamespace = new SimpleNamespace();
context.setNamespace(localNamespace, ScriptContext.ENGINE_SCOPE);
this.context = context;
// Bank model
BankCAContainer bankModel = new BankCAContainer();
this.bankModel = bankModel;
// Set a model
globalNamespace.put( "bankModel", bankModel );
// Set the root of the model as attribute
bank = bankModel.getBank();
localNamespace.put("bank", bankModel.getBank());
// Tree model
TreeModelContainer treeModel = new TreeModelContainer("root", 4);
this.treeModel = treeModel;
globalNamespace.put( "treeModel", treeModel );