@Override
    public String[] resolveFrom(final JoinPoint joinPoint, final Object returnValue) {
        if (returnValue instanceof final Response value) {
            return getPrincipalIdFromSamlResponse(value);
        }
        if (returnValue instanceof final Envelope value) {
            return getPrincipalIdFromSamlEcpResponse(value);
        }
        LOGGER.error("Could not determine the SAML response in the returned value");
        return ArrayUtils.EMPTY_STRING_ARRAY;
    }
This is {@link SamlResponseAuditResourceResolver}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/audit/SamlResponseAuditResourceResolver.java