code: public String getPath() {
          if (path == null) {
              // create a URI to automatically decode the path
              URI uri = URI.create(httpServletRequest.getRequestURL().toString());
              String requestUri = uri.getPath();
  
              path = applicationPath.isEmpty() ? requestUri : requestUri.substring(applicationPath.length());
              if (StringUtils.isNullOrEmpty(path)) {
                  path = "/";
              }
          }
  
          return path;
      }
docs: Returns a request path relative to the application path. The returned value always start with "/".