callback.handle(new DefaultFutureResult<JsonObject>(new ReplyException(
ReplyFailure.RECIPIENT_FAILURE, e.getMessage())));
return;
}
}
JsonObject root = new JsonObject(((JreJsonObject) snapshot.toJson()).toNative());
snapshotData.putNumber(Key.VERSION, opVersion + 1).putObject(DeltaStorage.ROOT, root).
putArray(Key.SNAPSHOT, new JsonArray(((JreJsonArray) snapshot.toSnapshot()).toNative()));
callback.handle(new DefaultFutureResult<JsonObject>(snapshotData));
}
});