return json;
} else {
connectorUpdateService.addApiUpdate(apiKey,
objectTypes, then, System.currentTimeMillis() - then,
urlString, false, httpResponseCode, httpResponseMessage);
throw new UnexpectedResponseCodeException(httpResponseCode,
httpResponseMessage,
urlString);
}
} catch (IOException e) {
throw new RuntimeException("IOException trying to make rest call: " + e.getMessage());