docs: public String toPathString() {
          return toString(pathSegment -> {
              final Optional<String> var = pathSegment.getVariable();
              if (var.isPresent()) {
                  final Optional<UriMatchVariable> umv = variables.stream()
                          .filter(v -> v.getName().equals(var.get())).findFirst();
                  if (umv.isPresent()) {
                      final UriMatchVariable uriMatchVariable = umv.get();
                      if (uriMatchVariable.isQuery()) {
                          return false;
                      }
                  }
              }
              return true;
          });
      }