in src/main/java/org/apache/sling/discovery/base/connectors/ping/wl/WildcardHelper.java [41:50]
public static boolean matchesWildcard(String comparee, String patternWithWildcards) {
if (comparee==null) {
throw new IllegalArgumentException("comparee must not be null");
}
if (patternWithWildcards==null) {
throw new IllegalArgumentException("patternWithEWildcards must not be null");
}
final String regex = wildcardAsRegex(patternWithWildcards);
return Pattern.matches(regex, comparee);
}