@Bean
        @ConditionalOnMissingBean(name = "javersMongoDatabaseFactory")
        @RefreshScope
        public MongoDatabaseFactory javersMongoDatabaseFactory(
            final CasConfigurationProperties casProperties) {
            val factory = new MongoDbConnectionFactory();
            val operations = factory.buildMongoTemplate(casProperties.getJavers().getMongo());
            return operations.getMongoDatabaseFactory();
        }
This is {@link CasJaversAutoConfiguration}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-javers/src/main/java/org/apereo/cas/config/CasJaversAutoConfiguration.java