/*
* process the request by invoking the controller "process()" function
*/
private Object process(Context context, Scriptable scope) {
_scope = scope; // save this for the didRespond() method above;
Function function = getFunction("process", scope, context);
Object[] args = new Object[] {
Context.javaToJS(_path, scope),
Context.javaToJS(_request, scope),
Context.javaToJS(_response, scope)
};
return function.call(context, scope, scope, args);
}