List<FacetQueryEntry> facetResult = new ArrayList<FacetQueryEntry>();
if (MapUtils.isNotEmpty(response.getFacetQuery())) {
for (Entry<String, Integer> entry : response.getFacetQuery().entrySet()) {
facetResult.add(new SimpleFacetQueryEntry(entry.getKey(), entry.getValue()));
}
}
return facetResult;
}