This class is copied from the Livetribe 2.0.6 source with one important extension: The Livetribe implementation has the {@link #setGlobalScope(Bindings)} and {@link #getGlobalScope()} methods,which the Sun implementation of this class has {@link #setBindings(Bindings)}and {@link #getBindings()} methods.
Another change is to not scan the class loader initially when creating the ScriptEngineManager -- the assumption is that the ScriptEngine registrations are managed inside the framework.