code: private boolean wildcardMatch(Set<String> pValues, String pValue) {
          for (String pattern : pValues) {
              if (pattern.contains("*") && pValue.matches(pattern.replaceAll("\\*",".*"))) {
                  return true;
              }
          }
          return false;
      }
docs: Check whether a value matches patterns in pValues