Long opVersion = null;
for (Object op : ops) {
JsonObject opData = (JsonObject) op;
opVersion = opData.getLong(Key.VERSION);
try {
snapshot.consume(transformer.createOperation(new JreJsonObject(opData.toMap())));
} catch (Exception e) {
log.log(Level.WARNING, "Failed to consume operation", e);
callback.handle(new DefaultFutureResult<JsonObject>(new ReplyException(
ReplyFailure.RECIPIENT_FAILURE, e.getMessage())));
return;