@Override
    public boolean choosePersonAttributeDao(final PersonAttributeDao repository) {
        val activeAttributeRepositoryIdentifiers = fetcher.getActiveAttributeRepositoryIdentifiers();
        if (activeAttributeRepositoryIdentifiers.isEmpty()) {
            return false;
        }
        if (activeAttributeRepositoryIdentifiers.contains(PersonAttributeDao.WILDCARD)) {
            return true;
        }

        val repoIdsArray = activeAttributeRepositoryIdentifiers.toArray(ArrayUtils.EMPTY_STRING_ARRAY);
        LOGGER.trace("Active attribute repository identifiers [{}] to compare with [{}]",
            activeAttributeRepositoryIdentifiers, repository.getId());
        val result = Arrays.stream(repository.getId()).anyMatch(daoId -> daoId.equalsIgnoreCase(PersonAttributeDao.WILDCARD)
            || StringUtils.equalsAnyIgnoreCase(daoId, repoIdsArray)
            || StringUtils.equalsAnyIgnoreCase(PersonAttributeDao.WILDCARD, repoIdsArray));
        LOGGER.debug("Selecting attribute repository [{}]", ArrayUtils.toString(repository.getId()));
        return result;
    }
This is {@link PrincipalAttributeRepositoryFilter}.

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