default Optional<V> find(final Predicate<V> filter) {
        val results = findAll(filter);
        if (results.isEmpty()) {
            return Optional.empty();
        }
        return Optional.of(results.iterator().next());
    }
Find values matching this predicate.

@param filter the filter
@return the collection
api/cas-server-core-api-util/src/main/java/org/apereo/cas/util/cache/DistributedCacheManager.java