@ConditionalOnMissingBean(name = "restfulAttributeRepositories")
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public BeanContainer<PersonAttributeDao> restfulAttributeRepositories(
            final ConfigurableApplicationContext applicationContext,
            final CasConfigurationProperties casProperties) {
            return BeanSupplier.of(BeanContainer.class)
                .when(CONDITION.given(applicationContext.getEnvironment()))
                .supply(() -> {
                    val rest = casProperties.getAuthn().getAttributeRepository().getRest();
                    val list = PersonDirectoryUtils.newRestAttributeRepository(rest);
                    return BeanContainer.of(list);
                })
                .otherwise(BeanContainer::empty)
                .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