public class CQCreateLazyQuery extends ClusteredQueryCommandWorker {
@Override
public QueryResponse perform() {
query.afterDeserialise((SearchFactoryImplementor) getSearchFactory());
DocumentExtractor extractor = query.queryDocumentExtractor();
int resultSize = query.queryResultSize();
QueryBox box = getQueryBox();
// registering...
box.put(lazyQueryId, extractor);
// returning the QueryResponse
TopDocs topDocs = extractor.getTopDocs();
QueryResponse queryResponse = new QueryResponse(topDocs, box.getMyId(), resultSize);
queryResponse.setAddress(cache.getAdvancedCache().getRpcManager().getAddress());
return queryResponse;
}