} else {
return HttpRequests.execute(HttpRequest.builder(HttpMethod.valueOf(requestMethod), url)
.addHeaders(newHeaders).build());
}
} catch (IOException e) {
throw new ExploreException(
String.format("Error connecting to Explore Service at %s while doing %s with headers %s and body %s",
resolvedUrl, requestMethod,
newHeaders == null ? "null" : Joiner.on(",").withKeyValueSeparator("=").join(newHeaders),
body == null ? "null" : body), e);
}