@Override
    public String[] resolveFrom(final JoinPoint joinPoint, final Object returnValue) {
        if (returnValue instanceof final Pair context) {
            return getAuditResourceFromSamlRequest((XMLObject) context.getLeft());
        }
        if (returnValue instanceof final XMLObject xmlObject) {
            return getAuditResourceFromSamlRequest(xmlObject);
        }
        return ArrayUtils.EMPTY_STRING_ARRAY;
    }
This is {@link SamlRequestAuditResourceResolver}.

@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/SamlRequestAuditResourceResolver.java