public void serialize(TreeRequest request, DataOutputStream dos, int version)
     throws IOException {
   dos.writeUTF(request.sessionid);
   CompactEndpointSerializationHelper.serialize(request.endpoint, dos);
   dos.writeUTF(request.cf.left);
   dos.writeUTF(request.cf.right);
   if (version > MessagingService.VERSION_07)
     AbstractBounds.serializer().serialize(request.range, dos);
 }
 public void serialize(Validator v, DataOutputStream dos, int version) throws IOException {
   TreeRequestVerbHandler.SERIALIZER.serialize(v.request, dos, version);
   MerkleTree.serializer.serialize(v.tree, dos, version);
   dos.flush();
 }