code: public static String getContextRelativeURI(final HttpServletRequest pRequest) {
          String context = pRequest.getContextPath();
  
          if (!StringUtil.isEmpty(context)) { // "" for root context
              return pRequest.getRequestURI().substring(context.length());
          }
  
          return pRequest.getRequestURI();
      }
docs: Gets the request URI relative to the current context path.
  <p/>
  As an example: <pre>
  requestURI = "/webapp/index.jsp"
  contextPath = "/webapp"
  </pre>
  The method will return {@code "/index.jsp"}.
  
  @param pRequest the current HTTP request
  @return the request URI relative to the current context path.