@Override
    public <T extends RegisteredService> T findServiceBy(final long id, final Class<T> clazz) {
        val manager = findServicesManager(clazz);
        return manager.map(servicesManager -> servicesManager.findServiceBy(id, clazz)).orElse(null);
    }
This is {@link DefaultChainingServicesManager}.

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