@Override
    public boolean supports(final JoinPoint auditTarget, final Authentication authentication,
                            final Object resultValue, final Exception exception) {
        val context = RequestContextHolder.getRequestContext();
        return resultValue instanceof AccountRegistrationRequest
            || (context != null && AccountRegistrationUtils.getAccountRegistrationRequest(context) != null);
    }
This is {@link AccountRegistrationRequestAuditPrincipalIdResolver}.

@author Misagh Moayyed
@since 6.5.0
support/cas-server-support-account-mgmt/src/main/java/org/apereo/cas/acct/AccountRegistrationRequestAuditPrincipalIdResolver.java