for (OScriptInjection i : scriptManager.getInjections())
i.bind(binding);
binding.put("doc", iDocument);
if (db != null) {
binding.put("db", new OScriptDocumentDatabaseWrapper((ODatabaseRecordTx) db));
binding.put("orient", new OScriptOrientWrapper(db));
} else
binding.put("orient", new OScriptOrientWrapper());
// scriptEngine.setBindings(binding, ScriptContext.ENGINE_SCOPE);