<BUG>if (CollectionUtils.isNotEmpty(response.getFacetFields())) {</BUG><CONTEXT>Assert.notNull(query, "Cannot convert response for 'null', query");if (!hasFacets(query, response)) {return Collections.emptyMap();}Map<Field, Page<FacetFieldEntry>> facetResult = new HashMap<Field, Page<FacetFieldEntry>>();<extra_id_0>int initalPageSize = query.getFacetOptions().getPageable().getPageSize();for (FacetField facetField : response.getFacetFields()) {if (facetField != null && StringUtils.hasText(facetField.getName())) {</CONTEXT>
if (!CollectionUtils.isEmpty(response.getFacetFields())) {