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