container.setErrorWriter(context.getErrorWriter());
// if key of globalMap exists in engineMap, this key-value pair should be skipped.
bindings = context.getBindings(ScriptContext.GLOBAL_SCOPE);
if (bindings == null) return;
keys = bindings.keySet();
for (String key : keys) {
if (container.getVarMap().containsKey(key)) continue;
Object value = bindings.get(key);
put(container, receiver, key, value, context);
}