try {
RhinoExpressionEngineImpl runtime = WGAGlobal.fetchRuntime(cx);
VarArgParser.Arguments parsedArgs = _runMasterMethodVarargs.parse(args);
Function function = (Function) parsedArgs.get("function");
Object returnValue = runtime.runAsMaster(function, null, parsedArgs.getOverflowArgs().toArray());
if (returnValue != null) {
return Context.javaToJS(returnValue, thisObj);
}
else {
return null;