default Collection<RegisteredService> findServicePredicate(final Predicate<RegisteredService> predicate) {
        return getServicesStream()
            .sorted()
            .filter(predicate)
            .collect(Collectors.toList());
    }
Find service predicate registered service.

@param predicate the predicate
@return the registered service
api/cas-server-core-api-services/src/main/java/org/apereo/cas/services/ServiceRegistry.java