code: public static PortalRequest unwrapPortalRequest(HttpServletRequest request) {
          do {
              if (request instanceof PortalRequest) {
                  return (PortalRequest) request;
              } else if (request instanceof HttpServletRequestWrapper) {
                  request = (HttpServletRequest) ((HttpServletRequestWrapper) request).getRequest();
              } else {
                  return null;
              }
          } while (true);
      }
docs: 取出包装在里面的PortalRequest
  
  @param request
  @return