code: public static ServiceContext createServiceContext(ServletRequest request) {
          if (!(request instanceof HttpServletRequest)) {
              throw new IllegalArgumentException("Expected HttpServletRequest");
          }
          return createServiceContext((HttpServletRequest) request);
      }
docs: Convenience method, it requires that the request is a HttpServletRequest.
  
  @see #createServiceContext(HttpServletRequest)