Field field = new SimpleField(facetField.getName());
if (CollectionUtils.isNotEmpty(facetField.getValues())) {
List<FacetFieldEntry> pageEntries = new ArrayList<FacetFieldEntry>(initalPageSize);
for (Count count : facetField.getValues()) {
if (count != null) {
pageEntries.add(new SimpleFacetFieldEntry(field, count.getName(), count.getCount()));
}
}
facetResult.put(field, new SolrResultPage<FacetFieldEntry>(pageEntries, query.getFacetOptions()
.getPageable(), facetField.getValueCount(), null));
} else {