code: boolean isRootRequest(HttpServletRequest request) {
          String path = request.getPathInfo();
          if (StringUtils.isBlank(path)) {
              return true;
          } else if (StringUtils.equals("/", path)) {
              return true;
          }
          return false;
      }
docs: Determines if the given request is for the root resource (ie /).
  
  @param request The {@link HttpServletRequest}
  @return If {@link HttpServletRequest#getPathInfo()} is null, empty string
  or "/", then true.