} finally {
final Vector<SearchResultItem> newItems = new Vector<SearchResultItem>(newResults.size());
for(int i = 0; i < newResults.size(); i++) {
SearchResult searchResult = newResults.get(i);
SearchResultItem searchResultItem;
if (searchResult instanceof SearchResult.Precise) {
searchResultItem = new SearchResultItem.Precise((SearchResult.Precise)searchResult);
} else if (searchResult instanceof SearchResult.Frequency){
searchResultItem = new SearchResultItem.Frequency((SearchResult.Frequency)searchResult);