throw new InvalidRequestException("Invalid id", operation, ex);
}
WaveletName waveletName = WaveletName.of(waveId, waveletId);
CommittedWaveletSnapshot snapshot = context.getWaveletSnapshot(waveletName, participant);
WaveletSnapshot protoSnapshot = SnapshotSerializer.serializeWavelet(snapshot.snapshot, snapshot.snapshot.getHashedVersion());
WaveletSnapshotProtoImpl protoSnapshotImpl = new WaveletSnapshotProtoImpl(protoSnapshot);
String jsonSnapshot = gson.toJson(protoSnapshotImpl.toGson(null, gson));
Map<ParamsProperty, Object> data =
ImmutableMap.<ParamsProperty, Object> of(ParamsProperty.RAW_SNAPSHOT, jsonSnapshot);
context.constructResponse(operation, data);
}