code: public AccessControlList read(ObjectReader in) throws UnknownClassIdException, IOException
     {
        // read id
        int key;
        if ((key = in.readInt()) != SerializationConstants.ACCESS_CONTROL_LIST)
        {
           throw new UnknownClassIdException("There is unexpected class [" + key + "]");
        }
  
        // reading owner
        String owner;
        if (in.readByte() == SerializationConstants.NOT_NULL_DATA)
        {
           owner = in.readString();
        }
        else
        {
           owner = null;
        }
  
        List<AccessControlEntry> accessList = new ArrayList<AccessControlEntry>();
        // reading access control entrys size
        int listSize = in.readInt();
        for (int i = 0; i < listSize; i++)
        {
           // reading access control entrys identity
           String ident = in.readString();
           // reading permission
           String perm = in.readString();
  
           accessList.add(new AccessControlEntry(ident, perm));
        }
  
        return new AccessControlList(owner, accessList);
     }
docs: Read and set AccessControlList data.
  
  @param in ObjectReader.
  @return AccessControlList object.
  @throws UnknownClassIdException If read Class ID is not expected or do not
  exist.
  @throws IOException If an I/O error has occurred.