code: public static void init(H.Request request, H.Response response) {
          H.Request.current(request);
          H.Response.current(response);
          resolveSession(request);
          resolveFlash(request);
      }
docs: Initialize the Http Context. This will set up current context for
  request, response, session (resolved from cookie) and flash (resolved
  from cookie)
  
  @param request  the http request
  @param response the http response