docs: private String getFormattedFilter(String searchFilter, String caller, String attribute) {
          //Allow %v in addition to %s for string replacement
          String filter = searchFilter.replaceAll("%v", "%s");
          if (!(filter.startsWith("(") && filter.endsWith(")")) && !filter.isEmpty()) {
              filter = "(" + filter + ")";
          }
          if (filter.contains("%s")) {
              filter = String.format(filter, caller);
          } else {
              filter = "(&" + filter + "(" + attribute + "=" + caller + "))";
          }
          return filter;
      }