code: @Override
      protected List<IPersonAttributes> getPeopleForQuery(final PartialWhereClause queryBuilder, final String queryUserName) {
          //Execute the query
          final RowMapper<R> rowMapper = this.getRowMapper();
  
          final List<R> results;
          if (queryBuilder != null) {
              //Merge the generated SQL with the base query template
              final StringBuilder partialSqlWhere = queryBuilder.sql;
              final Matcher queryMatcher = WHERE_PLACEHOLDER.matcher(this.queryTemplate);
              final String querySQL = queryMatcher.replaceAll(partialSqlWhere.toString());
  
              results = this.simpleJdbcTemplate.query(querySQL, rowMapper, queryBuilder.arguments.toArray());
  
              if (this.logger.isDebugEnabled()) {
                  this.logger.debug("Executed '" + this.queryTemplate + "' with arguments " + queryBuilder.arguments + " and got results " + results);
              }
          } else {
              results = this.simpleJdbcTemplate.query(this.queryTemplate, rowMapper);
  
              if (this.logger.isDebugEnabled()) {
                  this.logger.debug("Executed '" + this.queryTemplate + "' and got results " + results);
              }
          }
  
          return this.parseAttributeMapFromResults(results, queryUserName);
      }
docs: /* (non-Javadoc)
  @see org.jasig.services.persondir.support.AbstractQueryPersonAttributeDao#getPeopleForQuery(java.lang.Object, java.lang.String)