@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @ConditionalOnMissingBean(name = "mongoHealthIndicatorTemplate")
    public BeanContainer<CasMongoOperations> mongoHealthIndicatorTemplate(
        final CasConfigurationProperties casProperties,
        @Qualifier(CasSSLContext.BEAN_NAME)
        final CasSSLContext casSslContext) {
        return BeanContainer.of(casProperties.getMonitor().getMongo()
            .stream()
            .map(mongoProps -> {
                val factory = new MongoDbConnectionFactory(casSslContext.getSslContext());
                return factory.buildMongoTemplate(mongoProps);
            })
            .collect(Collectors.toList()));
    }
This is {@link CasMongoDbMonitoringAutoConfiguration}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-mongo-monitor/src/main/java/org/apereo/cas/config/CasMongoDbMonitoringAutoConfiguration.java