code: public PathTemplate withoutVars() {
      StringBuilder result = new StringBuilder();
      ListIterator<Segment> iterator = segments.listIterator();
      boolean start = true;
      while (iterator.hasNext()) {
        Segment seg = iterator.next();
        switch (seg.kind()) {
          case BINDING:
          case END_BINDING:
            break;
          default:
            if (!start) {
              result.append(seg.separator());
            } else {
              start = false;
            }
            result.append(seg.value());
        }
      }
      return create(result.toString(), urlEncoding);
    }
docs: Returns a template where all variable bindings have been replaced by wildcards, but which is
  equivalent regards matching to this one.