if (log.isDebugEnabled()) {
log.debug("API Request: {}", requestBuilder.build().toString());
}
final Response response = requestBuilder.execute().get();
if (response.getStatusCode() != 200) {
<BUG>throw new APIException(response.getStatusCode(), "REST call [" + url + "] returned " + response.getStatusText(), response.getResponseBody());
}
Gson gson = new Gson();
result.add(gson.fromJson(response.getResponseBody("UTF-8"), responseClass));</BUG>
} catch (InterruptedException e) {

if (log.isDebugEnabled()) {
log.debug("API Request: {}", requestBuilder.build().toString());
}
final Response response = requestBuilder.execute().get();
if (response.getStatusCode() != 200) {
throw new APIException(response.getStatusCode(), "REST call [" + url + "] returned " + response.getStatusText());
}
result.add(deserializeJson(response, responseClass));
} catch (InterruptedException e) {
