private void sendRequest(final Request<? extends Object> request,
final Class<JsonElement> resultClass,
final Continuation<Response<JsonElement>> continuation,
final boolean retry) {
final AsyncClient client = clientPool.acquireAsync();
try {
client.invokeJsonRpc(request.toString(),
new AsyncMethodCallback<AsyncClient.invokeJsonRpc_call>() {
@Override
public void onError(Exception exception) {
clientPool.release(client);