code: protected Object callNativeFunction(HttpServletRequest request,
  			HttpServletResponse response) {
  		
  		ServletWebRequest servletWebRequest = new ServletWebRequest(request);
  		AtmosRequest atmosRequest = new AtmosRequest(servletWebRequest);
  		AtmosResponse atmosResponse = new AtmosResponse();
  		
  		Context context = Context.enter();
  		ScriptableObject scope = (ScriptableObject) context.initStandardObjects(global);
  		
  		injectPathVariables(servletWebRequest, scope);
  		
  		atmosFunction.setParentScope(scope);
  		Object result = atmosFunction.call(context, scope, atmosFunction, new Object[] {
  				atmosRequest, atmosResponse });
  		
  		processCookie(atmosResponse, response, scope);
  		processSession(atmosRequest, request, scope);
  		processRedirectOrForwardPath(atmosResponse, scope);
  
  		return result;
  	}
docs: Call Javascript Native Function
  
  @param	request
  @param	response
  @return	handler