code: private static String extractTemplateName(String filter) {
          Matcher matcher = TEMPLATE_FILTER_PATTERN.matcher(filter);
          if (matcher.matches()) {
              return matcher.group(1);
          } else {
              return "Unknown template";
          }
      }
docs: Extracts the template name from the given LDAP filter.
  The LDAP filter is structure as established in the WisdomViewVisitor.
  
  @param filter the filter
  @return the extracted template name