code: static <T> PathMapped<T> of(PathMapping mapping, PathMappingResult mappingResult, T value) {
          requireNonNull(mapping, "mapping");
          requireNonNull(mappingResult, "mappingResult");
          requireNonNull(value, "value");
          if (!mappingResult.isPresent()) {
              throw new IllegalArgumentException("mappingResult: " + mappingResult + " (must be present)");
          }
  
          return new PathMapped<>(mapping, mappingResult, value);
      }
docs: Creates a new {@link PathMapped} with the specified {@code mappedPath} and {@code value}.
  
  @param mappingResult the result of {@link PathMapping#apply(PathMappingContext)}
  @param value  the value