resetContext
Resets the context of this ScriptEngine by creating a new SimpleScriptContext with fresh bindings.
The bindings being replaced are left as they are, since the caller may still use them or share them with other engines. Some engines keep the context of their last evaluation until the next one, as the Kotlin engine (with its REPL state) and Jython do, so everything bound in the old engine scope stays reachable until the engine next evaluates; clear those bindings first to release it sooner. AbstractScript and AbstractExprEvaluator, which own their engines' bindings, do.
Parameters
nullGlobalContext
if true, sets the global scope bindings to null; otherwise creates new empty bindings for the global scope