code: static PathMappingContext of(VirtualHost virtualHost, String hostname,
                                   String path, @Nullable String query,
                                   HttpHeaders headers, @Nullable MediaTypeSet producibleMediaTypes,
                                   boolean isCorsPreflight) {
          final MediaType consumeType = resolveConsumeType(headers);
          final List<MediaType> produceTypes = resolveProduceTypes(headers, producibleMediaTypes);
          return new DefaultPathMappingContext(virtualHost, hostname, headers.method(), path, query,
                                               consumeType, produceTypes, isCorsPreflight);
      }
docs: Returns a new {@link PathMappingContext} instance.