@Override
    public final Set<PersonAttributes> getPeopleWithMultivaluedAttributes(final Map<String, List<Object>> query,
                                                                          final PersonAttributeDaoFilter filter,
                                                                          final Set<PersonAttributes> resultPeople) {
        var queryBuilder = generateQuery(query);
        if (queryBuilder == null && (queryAttributeMapping != null || useAllQueryAttributes)) {
            LOGGER.debug("No queryBuilder was generated for query [{}], null will be returned", query);
            return null;
        }

        var usernameAttributeProvider = getUsernameAttributeProvider();
        var username = usernameAttributeProvider.getUsernameFromQuery(query);

        var unmappedPeople = getPeopleForQuery(queryBuilder, username);
        if (unmappedPeople == null) {
            return null;
        }
        return unmappedPeople.stream().map(this::mapPersonAttributes).collect(Collectors.toCollection(LinkedHashSet::new));
    }
Sets result attribute mapping.

@param resultAttributeMapping the result attribute mapping
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/attribute/AbstractQueryPersonAttributeDao.java