String location = locations[0].getValue();
response = location.substring(location.lastIndexOf("/")+1);
}
}
else {
ResponseHandler<String> responseHandler = new BasicResponseHandler();
response = responseHandler.handleResponse(httpResponse);
throw new RestCallException(url, "Unexpected status code: " + statusCode + "\n" + response);
}
} catch (UnsupportedEncodingException e) {
throw new RestCallException(e, url);
} catch (ClientProtocolException e) {