code: public String mapRequestPath(HttpServletRequest request) {
  
          String endpointName = Path.newInstance(request).firstSegment();
          return StringUtils.lowerCase(endpointName);
      }
docs: Determines the route name for the path of the given request.
  
  @param request The request.
  @return A matching route name, if one exists.