<BUG>Map<String, List<TermsFieldEntry>> result = new LinkedHashMap<String, List<TermsFieldEntry>>(termsResponse.getTermMap().size());</BUG><CONTEXT>static Map<String, List<TermsFieldEntry>> convertTermsQueryResponseToTermsMap(QueryResponse response) {if (response == null || response.getTermsResponse() == null || response.getTermsResponse().getTermMap() == null) {return Collections.emptyMap();}TermsResponse termsResponse = response.getTermsResponse();<extra_id_0>for (Map.Entry<String, List<Term>> entry : termsResponse.getTermMap().entrySet()) {List<TermsFieldEntry> terms = new ArrayList<TermsFieldEntry>(entry.getValue().size());</CONTEXT>
Map<String, List<TermsFieldEntry>> result = new LinkedHashMap<String, List<TermsFieldEntry>>(termsResponse.getTermMap().size());