@SuppressWarnings("unchecked")
private JsonObject castToSnapshotData(JsonObject body) {
JsonObject source = body.getObject("_source");
return !body.getBoolean("found") ? null :
new JsonObject().putNumber(Key.VERSION, body.getLong("_version"))
.putArray("snapshot", new JsonArray((List<Object>) source.removeField(_SNAPSHOT)))
.putObject(DeltaStorage.ROOT, source);
}
private void handleVoidCallback(final AsyncResultHandler<Void> callback,
AsyncResult<Message<JsonObject>> ar) {