@Override
    public boolean supports(final RegisteredService registeredService, final Service service) {
        val serviceType = getRegisteredServiceIndexedType();
        return serviceType.getValue().isAssignableFrom(registeredService.getClass())
                && registeredService.getFriendlyName().equalsIgnoreCase(serviceType.getKey());
    }
This is {@link BaseServicesManagerRegisteredServiceLocator}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/BaseServicesManagerRegisteredServiceLocator.java