@ConditionalOnMissingBean(name = "restfulTenantPersonAttributeDaoBuilder")
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public TenantPersonAttributeDaoBuilder restfulTenantPersonAttributeDaoBuilder(
            final ConfigurableApplicationContext applicationContext,
            final CasConfigurationProperties casProperties) {
            return BeanSupplier.of(TenantPersonAttributeDaoBuilder.class)
                .when(BeanCondition.on("cas.multitenancy.core.enabled").isTrue().given(applicationContext))
                .supply(TenantRestfulPersonAttributeDaoBuilder::new)
                .otherwise(TenantPersonAttributeDaoBuilder::noOp)
                .get();
        }
This is {@link CasPersonDirectoryRestConfiguration}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-person-directory/src/main/java/org/apereo/cas/config/CasPersonDirectoryRestConfiguration.java