@Override
    public boolean supports(final Service service) {
        if (service == null) {
            LOGGER.trace("Provided service is undefined");
            return false;
        }
        LOGGER.trace("Evaluating service requested identified as [{}]", service.getId());
        val realmAsParameter = getRealmAsParameter(service);
        if (realmAsParameter.isEmpty()) {
            LOGGER.trace("Parameter [{}] is undefined in the request", WSFederationConstants.WTREALM);
            return false;
        }
        return getReplyAsParameter(service).isPresent();
    }
This is {@link WSFederationAuthenticationServiceSelectionStrategy}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-ws-sts-api/src/main/java/org/apereo/cas/authentication/WSFederationAuthenticationServiceSelectionStrategy.java