@ConditionalOnMissingBean(name = "cosmosDbObjectFactory")
    @Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public CosmosDbObjectFactory cosmosDbObjectFactory(
        @Qualifier(CasSSLContext.BEAN_NAME)
        final CasSSLContext casSslContext,
        final CasConfigurationProperties casProperties) throws Exception {
        return new CosmosDbObjectFactory(casProperties.getServiceRegistry().getCosmosDb(), casSslContext);
    }
This is {@link CasCosmosDbServiceRegistryAutoConfiguration}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-cosmosdb-service-registry/src/main/java/org/apereo/cas/config/CasCosmosDbServiceRegistryAutoConfiguration.java