}
@Override
protected void registerCommand(String name, Command command, ShellScope<RhinoShellTopLevel> shellScope) {
//Creates a custom rhino FunctionObject that wraps a Command
RhinoCommandFunctionObject rhinoCommandFunctionObject = new RhinoCommandFunctionObject(name, command, RhinoCommandExecutor.EXECUTE_COMMAND_METHOD, shellScope.get());
shellScope.get().defineProperty(name, rhinoCommandFunctionObject, ScriptableObject.DONTENUM);
}