new DefaultFutureResult<V>(result.cause()).setHandler(doneHandler);
}
}
});
} else if (result.result().body().getString("status").equals("error")) {
new DefaultFutureResult<V>(new DataException(result.result().body().getString("message"))).setHandler(doneHandler);
} else {
new DefaultFutureResult<V>((V) result.result().body().getValue("result")).setHandler(doneHandler);
}
}
});