private byte[] SnapshotToBinary(object snapshot)
{
return TransportInformation != null
? Akka.Serialization.Serialization.SerializeWithTransport(TransportInformation.System,
TransportInformation.Address, () => Serialize(snapshot))
: Serialize(snapshot);
}