protected String[] getAuditResourceFromSamlRequest(final XMLObject returnValue) {
        if (returnValue instanceof final AuthnRequest authnRequest) {
            return getAuditResourceFromSamlAuthnRequest(authnRequest);
        }
        if (returnValue instanceof final LogoutRequest logoutRequest) {
            return getAuditResourceFromSamlLogoutRequest(logoutRequest);
        }
        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