ProtocolSubmitRequestJsoImpl submitRequest = ProtocolSubmitRequestJsoImpl.create();
submitRequest.setWaveletName(serialize(wavelet));
submitRequest.setDelta(serialize(wavelet, delta));
submitRequest.setChannelId(channelId);
final AsyncCallContext callContext = AsyncCallContext.start("SubmitRequest");
mux.submit(submitRequest, new SubmitResponseCallback() {
@Override
public void run(ProtocolSubmitResponse response) {
callContext.stop();
HashedVersion resultVersion = HashedVersion.unsigned(0);
if (response.hasHashedVersionAfterApplication()) {
resultVersion =
WaveletOperationSerializer.deserialize(response.getHashedVersionAfterApplication());
versions.updateHistory(wavelet, response.getHashedVersionAfterApplication());