@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @ConditionalOnMissingBean(name = "cassandraServiceRegistrySessionFactory")
    public CassandraSessionFactory cassandraServiceRegistrySessionFactory(
        final CasConfigurationProperties casProperties,
        @Qualifier(CasSSLContext.BEAN_NAME)
        final CasSSLContext casSslContext) {
        val cassandra = casProperties.getServiceRegistry().getCassandra();
        return new DefaultCassandraSessionFactory(cassandra, casSslContext.getSslContext());
    }
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