RestResponse response = fetchGetResponse(rb, FETCH_SCHEMA_TIMEOUT_MS);
return response.getEntity().asString("UTF-8");
} catch(ExecutionException e) {
if(e.getCause() instanceof RestException) {
RestException exception = (RestException) e.getCause();
if(logger.isDebugEnabled()) {
logger.debug("REST EXCEPTION STATUS : " + exception.getResponse().getStatus());
}
} else {
throw new VoldemortException("Unknown HTTP request execution exception: "
+ e.getMessage(), e);
}