@Override
    public RegisteredService findServiceBy(final long id) {
        val result = configurationContext.getServicesCache().get(id,
            __ -> configurationContext.getServiceRegistry().findServiceById(id));
        return validateRegisteredService(result);
    }
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