@Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public CasEventRepository casEventRepository(
            @Qualifier(JpaBeanFactory.DEFAULT_BEAN_NAME)
            final JpaBeanFactory jpaBeanFactory,
            final CasConfigurationProperties casProperties,
            @Qualifier(CasEventRepository.TRANSACTION_MANAGER_EVENTS)
            final PlatformTransactionManager transactionManager,
            @Qualifier("jpaEventRepositoryFilter")
            final CasEventRepositoryFilter jpaEventRepositoryFilter) {
            return new JpaCasEventRepository(jpaEventRepositoryFilter, transactionManager,
                casProperties, jpaBeanFactory);
        }
This is {@link CasJpaEventsAutoConfiguration}, defines certain beans via configuration
while delegating some to Spring namespaces inside the context config file.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-events-jpa/src/main/java/org/apereo/cas/config/CasJpaEventsAutoConfiguration.java