@Override
    protected PartialWhereClause appendAttributeToQuery(final PartialWhereClause queryBuilder,
                                                        final String dataAttribute, final List<Object> queryValues) {
        val effectiveBuilder = queryBuilder != null ? queryBuilder : new PartialWhereClause();
        for (val queryValue : queryValues) {
            var queryString = queryValue != null ? queryValue.toString() : null;
            if (StringUtils.isNotBlank(queryString)) {
                if (!effectiveBuilder.getSql().isEmpty()) {
                    effectiveBuilder.getSql().append(' ').append(queryType.toString()).append(' ');
                }
                var queryValueMatcher = PersonAttributeDao.WILDCARD_PATTERN.matcher(queryString);
                var formattedQueryValue = queryValueMatcher.replaceAll("%");

                effectiveBuilder.getArguments().add(formattedQueryValue);
                if (dataAttribute != null) {
                    effectiveBuilder.getSql().append(dataAttribute);
                    if (formattedQueryValue.equals(queryString)) {
                        effectiveBuilder.getSql().append(" = ");
                    } else {
                        effectiveBuilder.getSql().append(" LIKE ");
                    }
                }
                effectiveBuilder.getSql().append('?');
            }
        }
        return effectiveBuilder;
    }
Takes the {@link List} from the query and parses it into the {@link List} of {@link PersonAttributes} attributes to be returned.

@param queryResults  Results from the query.
@param queryUserName The username passed in the query map, if no username attribute existed in the query Map null is provided.
@return The results of the query
support/cas-server-support-jdbc-authentication/src/main/java/org/apereo/cas/jdbc/AbstractJdbcPersonAttributeDao.java