public static void validate(Pattern pattern, String template) throws IllegalArgumentException {
    new RegExReplacementBuilder(pattern).createReplacement(template);
  }
public static void validate(Pattern pattern, String template)