/**
* First stage of serialization - creates a Protobuf Message class instance
* from wavelet.
*/
public WalkaroundWaveletSnapshot createWaveletMessage(WaveletDataImpl waveletData) {
WalkaroundWaveletSnapshot wavelet = MessageFactoryHelper.createWaveletSnapshot();
wavelet.setVersion(waveletData.getVersion());
wavelet.setCreator(waveletData.getCreator().getAddress());
wavelet.setCreationTime(waveletData.getCreationTime());
wavelet.setLastModifiedTime(waveletData.getLastModifiedTime());
wavelet.addAllDocument(listOfDocuments(waveletData));
wavelet.addAllParticipant(listOfParticipantAddresses(waveletData.getParticipants()));
return wavelet;
}