code: public void writeExternal(ObjectOutput out) throws IOException
     {
        byte[] buf;
        if (ownerId == null)
        {
           out.writeInt(-1);
        }
        else
        {
           buf = ownerId.getBytes(Constants.DEFAULT_ENCODING);
           out.writeInt(buf.length);
           out.write(buf);
        }
        if (group == null)
        {
           out.writeInt(-1);
        }
        else
        {
           buf = group.getBytes(Constants.DEFAULT_ENCODING);
           out.writeInt(buf.length);
           out.write(buf);
        }
  
        buf = id.getBytes(Constants.DEFAULT_ENCODING);
        out.writeInt(buf.length);
        out.write(buf);
     }
docs: {@inheritDoc}