protected QB finalizeQueryBuilder(final QB queryBuilder, final Map<String, List<Object>> query) {
        return queryBuilder;
    }
Generates a query using the queryBuilder object passed by the subclass. Attribute/Value pairs are added to the
queryBuilder by calling {@link #appendCanonicalizedAttributeToQuery(Object, String, String, List)} which calls
{@link #appendAttributeToQuery(Object, String, List)}. Attributes are only added if
there is an attributed mapped in the queryAttributeMapping.

@param query The query Map to populate the queryBuilder with.
@return The fully populated query builder.
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/attribute/AbstractQueryPersonAttributeDao.java