code: public Bindings getBindings(int scope) {
  
  	if (scope == ScriptContext.GLOBAL_SCOPE) {
  	    return context.getBindings(ScriptContext.GLOBAL_SCOPE);
  	}
  	else if (scope == ScriptContext.ENGINE_SCOPE) {
  	    return context.getBindings(ScriptContext.ENGINE_SCOPE);
  	}
  	else {
  	    throw new IllegalArgumentException("Invalid scope value.");
  	}
      }
docs: Returns the <code>Bindings</code> with the specified scope value in the protected
  <code>context</code> field.
  
  @param scope The specified scope
  
  @return The corresponding <code>Bindings</code>.
  
  @throws IllegalArgumentException if the value of scope is invalid for the type the protected
  <code>context</code> field.