public TermsPage queryForTermsPage(TermsQuery query) {
Assert.notNull(query, "Query must not be 'null'.");
QueryResponse response = query(query);
TermsResultPage page = new TermsResultPage();
page.addAllTerms(ResultHelper.convertTermsQueryResponseToTermsMap(response));
return page;
}