code: void doMethod(HttpServletRequest request, HttpServletResponse response, HttpMethod httpMethod) {
  
          // Locate a request handler:
          String requestPath = mapRequestPath(request);
          Route route = api.get(requestPath);
  
          try {
  
              if (route != null && route.requestHandlers.containsKey(httpMethod)) {
                  handleRequest(request, response, route, httpMethod);
              } else {
                  handleNotFound(request, response);
              }
  
          } catch (Throwable t) {
  
              // Chances are the exception we've actually caught is the reflection
              // one from Method.invoke(...)
              Throwable caught = t;
              if (InvocationTargetException.class.isAssignableFrom(t.getClass())) {
                  caught = t.getCause();
              }
  
              RequestHandler requestHandler = (route == null ? null : route.requestHandlers.get(httpMethod));
              handleError(request, response, requestHandler, caught);
          }
  
      }
docs: GO!
  
  @param request  The request.
  @param response The response.