encoder.writeString(uid);
MultiChoiceAddress multiChoiceAddress = (MultiChoiceAddress) address;
UUID canonicalAddress = (UUID) multiChoiceAddress.getCanonicalAddress();
encoder.writeLong(canonicalAddress.getMostSignificantBits());
encoder.writeLong(canonicalAddress.getLeastSignificantBits());
encoder.writeInt(multiChoiceAddress.getPort());
encoder.writeSmallInt(multiChoiceAddress.getCandidates().size());
for (InetAddress inetAddress : multiChoiceAddress.getCandidates()) {
encoder.writeBinary(inetAddress.getAddress());
}
encoder.writeString(daemonLog.getPath());