@Override
    public Collection<RegisteredService> getAllServices() {
        return getCacheableServicesStream()
            .get()
            .filter(this::validateAndFilterServiceByEnvironment)
            .filter(getRegisteredServicesFilteringPredicate())
            .sorted()
            .peek(RegisteredService::initialize)
            .peek(this::cacheRegisteredService)
            .collect(Collectors.toList());
    }
This is {@link AbstractServicesManager}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/mgmt/AbstractServicesManager.java