* @param query the query to perform
* @return the search result
*/
private SearchResult<Widget> executeQuery(String query) throws Exception{
// Use a wrapper for the result, and then convert to SearchResult
WidgetMarketplaceSearchResult result;
try {
result = getRestJsonTemplate().getForObject(query, WidgetMarketplaceSearchResult.class);
} catch (RestClientException e) {
throw e;
}
return result.toSearchResult();
}