@Override
    public synchronized void setBindings(final Bindings bindings) {
        if (null == bindings) throw new IllegalArgumentException("Global scope cannot be null.");
        globalScope = bindings;
    }
Stores the specified {@code Bindings} as a global for all {@link GremlinScriptEngine} objects created by it.
If the bindings are to be updated by multiple threads it is recommended that a {@link ConcurrentBindings}
instance is supplied.

@throws IllegalArgumentException if bindings is null.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/jsr223/DefaultGremlinScriptEngineManager.java