@Bean
    @ConditionalOnMissingBean(name = "casMultitenancyWebflowDecorator")
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public WebflowDecorator casMultitenancyWebflowDecorator(
        @Qualifier(TenantExtractor.BEAN_NAME)
        final TenantExtractor tenantExtractor,
        final ConfigurableApplicationContext applicationContext,
        final CasConfigurationProperties casProperties) {
        return BeanSupplier.of(WebflowDecorator.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .supply(() -> new TenantWebflowDecorator(tenantExtractor))
            .otherwise(WebflowDecorator::noOp)
            .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