MultivaluedMap<String,String> queryParams = new MultivaluedMapImpl();
queryParams.add("term", search);
queryParams.add("media", MEDIA);
queryParams.add("limit", Integer.toString(LIMIT));
queryParams.add("output", "json");
webResource = webResource.queryParams(queryParams);
ClientResponse response = webResource.accept("text/plain").get(ClientResponse.class);
logger.info("HTTP response status: "+response.getStatus());
InputStream is = response.getEntityInputStream();