code: public static boolean isTemplate(String candidate) {
  
  		return StringUtils.hasText(candidate) //
  				? VARIABLE_REGEX.matcher(candidate).find()
  				: false;
  	}
docs: Returns whether the given candidate is a URI template.
  
  @param candidate
  @return