@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @ConditionalOnMissingBean(name = TenantsManager.BEAN_NAME)
    public TenantsManager tenantsManager(
        @Qualifier("casConfigurationCipherExecutor")
        final CipherExecutor<String, String> casConfigurationCipherExecutor,
        final ConfigurableApplicationContext applicationContext,
        final CasConfigurationProperties casProperties) {
        return BeanSupplier.of(TenantsManager.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .supply(() -> {
                val location = casProperties.getMultitenancy().getJson().getLocation();
                val objectMapper = JacksonObjectMapperFactory.builder()
                    .defaultTypingEnabled(true)
                    .applicationContext(applicationContext)
                    .build()
                    .toObjectMapper();
                return new DefaultTenantsManager(objectMapper, location);
            })
            .otherwise(DefaultTenantsManager::new)
            .get();
    }
This is {@link CasCoreMultitenancyAutoConfiguration}.

@author Misagh Moayyed
@since 7.2.0
core/cas-server-core-multitenancy/src/main/java/org/apereo/cas/config/CasCoreMultitenancyAutoConfiguration.java