default RegisteredService findServiceByExactServiceId(final String id) {
        return getServicesStream()
            .sorted()
            .filter(r -> StringUtils.isNotBlank(r.getServiceId()) && r.getServiceId().equals(id))
            .findFirst()
            .orElse(null);
    }
Find a service by an exact match of the service id.

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