code: public void writeExternal(ObjectOutput out) throws IOException
     {
        // Writing owner
        if (owner != null)
        {
           out.writeInt(owner.getBytes().length);
           out.write(owner.getBytes());
        }
        else
        {
           out.writeInt(0);
        }
  
        // writing access control entrys size
        out.writeInt(accessList.size());
  
        for (AccessControlEntry entry : accessList)
        {
           // writing access control entrys identity
           out.writeInt(entry.getIdentity().getBytes().length);
           out.write(entry.getIdentity().getBytes());
           // writing permission
           out.writeInt(entry.getPermission().getBytes().length);
           out.write(entry.getPermission().getBytes());
        }
     }
docs: {@inheritDoc}