@Override
    public boolean supports(final Service service) {
        return service != null && service.getId().matches(this.casServiceUrlPattern)
            && getEntityIdAsParameter(service).isPresent();
    }
This is {@link SamlIdPEntityIdAuthenticationServiceSelectionStrategy}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-saml-idp-metadata/src/main/java/org/apereo/cas/support/saml/services/SamlIdPEntityIdAuthenticationServiceSelectionStrategy.java