if (getMode().endsWith("contain")) {
boolean match = matcher.contains(value, pattern);
return not ? !match : match;
} else if (getMode().endsWith("exact")) {
boolean match = matcher.matches(value, pattern);
return not ? !match : match;
} else if (getMode().endsWith("prefix")) {
boolean match = matcher.matchesPrefix(value, pattern);