out.writeBoolean(bodyReadOnly);
   public void writeExternal(ObjectOutput out) throws IOException   {      super.writeExternal(out);      out.writeBoolean(bodyReadOnly);      out.writeBoolean(isByteArray);      if (payload == null)      {         out.writeInt(-1);      }      else      {         out.writeInt(((byte[])payload).length);         out.write((byte[])payload);      }   }