code: public static HttpServletRequest getOuterRequest( HttpServletRequest request )
      {
          ScopedRequest scopedRequest = unwrapRequest( request );
          return scopedRequest != null ? scopedRequest.getOuterRequest() : request;
      }
docs: Get the outer (unwrapped) request.
  
  @param request the request to unwrap.
  @return the outer request, if the given request is a ScopedRequest (or wraps a ScopedRequest);
  otherwise, the given request itself.