new DefaultFutureResult<Collection<V>>(result.cause()).setHandler(resultHandler);
}
}
});
} else if (result.result().body().getString("status").equals("error")) {
new DefaultFutureResult<Collection<V>>(new DataException(result.result().body().getString("message"))).setHandler(resultHandler);
} else {
JsonArray jsonValues = result.result().body().getArray("result");
List<V> values = new ArrayList<>();
for (Object jsonValue : jsonValues) {
values.add((V) jsonValue);