public void write(DataOutput out) throws IOException {
    LocalHistoryLog.LOG.assertTrue(isLocked, "Changeset should be locked");
    DataInputOutputUtil.writeINT(out, VERSION);
    DataInputOutputUtil.writeLONG(out, myId);
    DataStreamUtil.writeStringOrNull(out, myName);
    DataInputOutputUtil.writeTIME(out, myTimestamp);

    writeActivityId(out, myActivityId);

    DataInputOutputUtil.writeINT(out, myChanges.size());
    for (Change c : myChanges) {
      DataStreamUtil.writeChange(out, c);
    }
  }
public void write(DataOutput out)