public Optional<String> getAssertionConsumerServiceFor(final String binding, final Integer index) {
        return getAssertionConsumerServices()
            .stream()
            .filter(acs -> Objects.nonNull(acs) && Objects.nonNull(acs.getBinding()))
            .filter(acs -> acs.getBinding().equalsIgnoreCase(binding) && index != null && index.equals(acs.getIndex()))
            .map(acs -> StringUtils.defaultIfBlank(acs.getResponseLocation(), acs.getLocation()))
            .filter(StringUtils::isNotBlank)
            .findFirst();
    }
Gets assertion consumer service for.

@param binding the binding
@param index   the index
@return the assertion consumer service for
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/SamlRegisteredServiceMetadataAdaptor.java