/* (non-Javadoc)
  * @see cn.com.rebirth.commons.io.stream.Streamable#writeTo(cn.com.rebirth.commons.io.stream.StreamOutput)
  */
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   out.writeVInt(5);
   out.writeUTF(id);
   out.writeUTF(type);
   out.writeBytesHolder(source);
   if (routing == null) {
     out.writeBoolean(false);
   } else {
     out.writeBoolean(true);
     out.writeUTF(routing);
   }
   if (parent == null) {
     out.writeBoolean(false);
   } else {
     out.writeBoolean(true);
     out.writeUTF(parent);
   }
   out.writeLong(version);
   out.writeLong(timestamp);
   out.writeLong(ttl);
 }
 /* (non-Javadoc)
  * @see cn.com.rebirth.commons.io.stream.Streamable#writeTo(cn.com.rebirth.commons.io.stream.StreamOutput)
  */
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   out.writeBoolean(acknowledged);
 }