@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @ConditionalOnMissingBean(name = "cassandraServiceRegistry")
    public ServiceRegistry cassandraServiceRegistry(final CasConfigurationProperties casProperties,
                                                    final ConfigurableApplicationContext applicationContext,
                                                    final ObjectProvider<List<ServiceRegistryListener>> serviceRegistryListeners,
                                                    @Qualifier("cassandraServiceRegistrySessionFactory")
                                                    final CassandraSessionFactory cassandraServiceRegistrySessionFactory) {
        val cassandra = casProperties.getServiceRegistry().getCassandra();
        return new CassandraServiceRegistry(cassandraServiceRegistrySessionFactory, cassandra, applicationContext,
            Optional.ofNullable(serviceRegistryListeners.getIfAvailable()).orElseGet(ArrayList::new));
    }
This is {@link CassandraServiceRegistryAutoConfiguration}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-cassandra-service-registry/src/main/java/org/apereo/cas/config/CassandraServiceRegistryAutoConfiguration.java