@ConditionalOnMissingBean(name = "jdbcAuditTrailExecutionPlanConfigurer")
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public AuditTrailExecutionPlanConfigurer jdbcAuditTrailExecutionPlanConfigurer(
            final ConfigurableApplicationContext applicationContext,
            @Qualifier("jdbcAuditTrailManager") final AuditTrailManager jdbcAuditTrailManager) {
            return BeanSupplier.of(AuditTrailExecutionPlanConfigurer.class)
                .when(CONDITION.given(applicationContext.getEnvironment()))
                .supply(() -> plan -> plan.registerAuditTrailManager(jdbcAuditTrailManager))
                .otherwiseProxy()
                .get();
        }
This is {@link CasJdbcAuditAutoConfiguration}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-audit-jdbc/src/main/java/org/apereo/cas/config/CasJdbcAuditAutoConfiguration.java