// Make sure the callback runs on the vert.x thread
return new FutureCallback<V>() {
@Override
public void onSuccess(final V result) {
context.runOnContext(new Handler<Void>() {
@Override
public void handle(Void aVoid) {
callback.onSuccess(result);
}
});