@Override
    public List<? extends PersonAttributeDao> buildInternal(final TenantDefinition tenantDefinition,
                                                            final ConfigurationPropertiesBindingContext<CasConfigurationProperties> bindingContext) {
        if (bindingContext.containsBindingFor(RestPrincipalAttributesProperties.class)) {
            val casProperties = bindingContext.value();
            val rest = casProperties.getAuthn().getAttributeRepository().getRest();
            return PersonDirectoryUtils.newRestAttributeRepository(rest);
        }
        return List.of();
    }
This is {@link TenantRestfulPersonAttributeDaoBuilder}.

@author Misagh Moayyed
@since 7.3.0
support/cas-server-support-person-directory-core/src/main/java/org/apereo/cas/persondir/TenantRestfulPersonAttributeDaoBuilder.java