}
SuggestionList list = tree.getBestSuggestions(action.getRequest().getQuery());
ArrayList<ItemSuggestion> suggestions = new ArrayList<ItemSuggestion>();
for (int i=0;i<list.length();i++){
suggestions.add(new ItemSuggestion(list.get(i)));
}
Response resp = new Response();
resp.setSuggestions(suggestions);
return new RequestGlobalSearchSuggestionResult(resp);
}