public List<SearchResultResourceRep> performSearch(Map<String, Object> params) {
UriBuilder builder = client.uriBuilder(getSearchUrl());
for (Map.Entry<String, Object> entry : params.entrySet()) {
builder.queryParam(entry.getKey(), entry.getValue());
}
SearchResults searchResults = client.getURI(SearchResults.class, builder.build());
List<SearchResultResourceRep> results = searchResults.getResource();
if (results == null) {
results = new ArrayList<SearchResultResourceRep>();
}
return results;
}