public AssertionConsumerService getSPAssertionConsumerService(final StatusResponseType response) {
        val spssoDescriptor = getSPSSODescriptor();
        val services = spssoDescriptor.getAssertionConsumerServices();

        // Get by index
        if (response != null && StringUtils.isNotEmpty(response.getDestination())) {
            for (val service : services) {
                if (response.getDestination().equals(service.getLocation())) {
                    return service;
                }
            }
            throw new SAMLException("Assertion consumer service with destination " + response.getDestination()
                + " could not be found for spDescriptor " + spssoDescriptor);
        }

        return getSPAssertionConsumerService(spssoDescriptor, services);
    }
<p>getSPAssertionConsumerService.</p>

@param response a {@link StatusResponseType} object
@return a {@link AssertionConsumerService} object
pac4j-saml/src/main/java/org/pac4j/saml/context/SAML2MessageContext.java