Response<JsonElement> responseJsonObject;
try {
responseJsonObject = responseFuture.get();
} catch (InterruptedException e) {
// TODO What to do in this case?
throw new JsonRpcConnectorException(
"Interrupted while waiting for a response", e);
} catch (ExecutionException e) {
// TODO Is there a better way to handle this?
throw new JsonRpcConnectorException(
"This exception shouldn't be thrown", e);
}
return MessageUtils.convertResponse(responseJsonObject, resultClass);
}