/** * Filter attribute values by pattern and return the list. * * @param attributeValues the attribute values * @param pattern the pattern * @return the list */ protected List<Object> filterAttributeValuesByPattern(final Set<Object> attributeValues, final Pattern pattern) { return attributeValues.stream().filter(v -> RegexUtils.matches(pattern, v.toString(), completeMatch)).collect(Collectors.toList()); }
if (!RegexUtils.matches(this.serviceFileNamePattern, fileName)) { LOGGER.warn("[{}] does not match the recommended pattern [{}]. " + "While CAS tries to be forgiving as much as possible, it's recommended "