@Bean
    @ConditionalOnMissingBean(name = "restAuditTrailManager")
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public AuditTrailManager restAuditTrailManager(
        final ConfigurableApplicationContext applicationContext,
        final CasConfigurationProperties casProperties) {
        val rest = casProperties.getAudit().getRest();
        return new RestAuditTrailManager(new AuditActionContextJsonSerializer(applicationContext), rest);
    }
This is {@link CasSupportRestAuditAutoConfiguration}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-audit-rest/src/main/java/org/apereo/cas/config/CasSupportRestAuditAutoConfiguration.java