private boolean hasTemplate(String href) {
    if (href == null) {
      return false;
    }
    return URI_TEMPLATE_PATTERN.matcher(href).find();
  }
private boolean hasTemplate ( String href ) { if ( href == null ) { return false ; } return URI_TEMPLATE_PATTERN . matcher ( href ) . find ( ) ; }
Determine whether the argument href contains at least one URI template, as defined in RFC 6570.

@param href Href to check.
@return True if the href contains a template, false if not (or if the argument is null).