@Override
    protected List<PersonAttributes> getPeopleForQuery(final PartialWhereClause queryBuilder, final String queryUserName) {
        val rowMapper = getRowMapper();
        if (queryBuilder != null) {
            val partialSqlWhere = queryBuilder.getSql();
            val queryMatcher = WHERE_PLACEHOLDER.matcher(queryTemplate);
            val querySQL = queryMatcher.replaceAll(partialSqlWhere.toString());
            LOGGER.debug("Executing [{}] with arguments [{}]", queryTemplate, queryBuilder.getArguments());
            val results = simpleJdbcTemplate.query(querySQL, rowMapper, queryBuilder.getArguments().toArray());
            LOGGER.debug("Executed [{}] with arguments [{}] and got results [{}]", queryTemplate, queryBuilder.getSql(), results);
            return parseAttributeMapFromResults(results, queryUserName);
        }
        LOGGER.debug("Executing [{}]", queryTemplate);
        val results = simpleJdbcTemplate.query(queryTemplate, rowMapper);
        LOGGER.debug("Executed [{}] and got results [{}]", queryTemplate, results);
        return parseAttributeMapFromResults(results, queryUserName);
    }
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