Execution<GroupedSearchResults> execution= new Execution<GroupedSearchResults>();
for (int i = 0; i < searchers.size(); ++i) {
final int numSearcher = i;
final IRemoteSearcher searcher = searchers.get(numSearcher);
execution.addTask(new CallableWithId<GroupedSearchResults, Integer>(numSearcher) {
public GroupedSearchResults call() throws Exception {
return queryParams.executeInRemoteSearcher(searcher);
}
});