}
private void getRest(String rightside, JiraJSONResponse response)
throws IOException, ResponseException {
final HttpRequestBase method = new HttpGet(URLbase + rightside);
method.addHeader("Accept", "application/json");
try {
HttpResponse httpResponse = httpClient.execute(method);
int resultCode = httpResponse.getStatusLine().getStatusCode();
if (resultCode != 200)
throw new IOException("Unexpected result code "+resultCode+": "+convertToString(httpResponse));
Object jo = convertToJSON(httpResponse);
response.acceptJSONObject(jo);
} finally {
method.abort();
}
}