code: static String stripJaxRsRegex(String hrefTemplate) {
          Matcher m = JAX_RS_TEMPLATE_PARAMETERS.matcher(hrefTemplate);
  
          StringBuffer newHref = new StringBuffer();
          while (m.find()) {
              m.appendReplacement(newHref, "{" + m.group(1) + "}");
          }
          m.appendTail(newHref);
  
          return newHref.toString();
      }
docs: Replaces the JAX-RS regex in the path by a URI template level 1.
  <pre>
  /widgets/{widgetName: [a-zA-Z][a-zA-Z_0-9]}
  </pre>
  Become:
  <pre>
  /widgets/{widgetName}
  </pre>
  
  @param hrefTemplate the href template
  @return the new href template