if (db != null) {
binding.put("db", new OScriptDocumentDatabaseWrapper(db));
binding.put("gdb", new OScriptGraphDatabaseWrapper(db));
}
binding.put("util", new OFunctionUtilWrapper(null));
<BUG>if (iContext != null) {
for (Entry<String, Object> a : iContext.getVariables().entrySet())</BUG>
binding.put(a.getKey(), a.getValue());
}
if (iArgs != null) {

if (db != null) {
binding.put("db", new OScriptDocumentDatabaseWrapper(db));
binding.put("gdb", new OScriptGraphDatabaseWrapper(db));
}
binding.put("util", new OFunctionUtilWrapper(null));
if (iContext != null) {
binding.put("ctx", iContext);
for (Entry<String, Object> a : iContext.getVariables().entrySet())
binding.put(a.getKey(), a.getValue());
}
if (iArgs != null) {
