return collector;
}
facetCollectors = new ArrayList<FacetCollector>();
Collector nextInChain = collector;
for ( FacetRequest entry : facetRequests.values() ) {
FacetCollector facetCollector = new FacetCollector( nextInChain, entry );
nextInChain = facetCollector;
facetCollectors.add( facetCollector );
}
return facetCollectors.get( facetCollectors.size() - 1 );