@Override
    public List<? extends PersonAttributeDao> buildInternal(
        final TenantDefinition tenantDefinition,
        final ConfigurationPropertiesBindingContext<CasConfigurationProperties> bindingContext) {
        if (bindingContext.containsBindingFor(StubPrincipalAttributesProperties.class)) {
            val casProperties = bindingContext.value();
            val stub = casProperties.getAuthn().getAttributeRepository().getStub();
            val repository = PersonAttributeUtils.newStubAttributeRepository(stub);
            return List.of(repository);
        }
        return List.of();
    }
This is {@link TenantStubPersonAttributeDaoBuilder}.

@author Misagh Moayyed
@since 7.3.0
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/attribute/TenantStubPersonAttributeDaoBuilder.java