public GossipDigestAckMessage deserialize(DataInputStream dis) throws IOException {
   List<GossipDigest> gDigestList = GossipDigestSerializationHelper.deserialize(dis);
   dis.readBoolean(); // 0.6 compatibility
   Map<InetAddress, EndpointState> epStateMap = EndpointStatesSerializationHelper.deserialize(dis);
   return new GossipDigestAckMessage(gDigestList, epStateMap);
 }
 public GossipDigestSynMessage deserialize(DataInputStream dis) throws IOException {
   String clusterId = dis.readUTF();
   List<GossipDigest> gDigests = GossipDigestSerializationHelper.deserialize(dis);
   return new GossipDigestSynMessage(clusterId, gDigests);
 }
 public void serialize(GossipDigestAckMessage gDigestAckMessage, DataOutputStream dos)
     throws IOException {
   GossipDigestSerializationHelper.serialize(gDigestAckMessage.gDigestList_, dos);
   dos.writeBoolean(true); // 0.6 compatibility
   EndpointStatesSerializationHelper.serialize(gDigestAckMessage.epStateMap_, dos);
 }
 public void serialize(GossipDigestSynMessage gDigestSynMessage, DataOutputStream dos)
     throws IOException {
   dos.writeUTF(gDigestSynMessage.clusterId_);
   GossipDigestSerializationHelper.serialize(gDigestSynMessage.gDigests_, dos);
 }