code: public static AccessControlList fromStringEntries(String owner, String owningGroup,
        List<String> stringEntries) {
      AccessControlList acl;
      if (stringEntries.size() > 0) {
        AclEntry aclEntry = AclEntry.fromCliString(stringEntries.get(0));
        if (aclEntry.isDefault()) {
          acl = new DefaultAccessControlList();
        } else {
          acl = new AccessControlList();
        }
      } else {
        // when the stringEntries size is 0, it can only be a DefaultAccessControlList
        acl = new DefaultAccessControlList();
      }
      acl.setOwningUser(owner);
      acl.setOwningGroup(owningGroup);
  
      for (String stringEntry : stringEntries) {
        AclEntry aclEntry = AclEntry.fromCliString(stringEntry);
        acl.setEntry(aclEntry);
      }
      return acl;
    }
docs: Converts a list of string entries into an AccessControlList or a DefaultAccessControlList.
  It assumes the stringEntries contain all default entries or normal entries.
  
  @param owner the owner
  @param owningGroup the owning group
  @param stringEntries the list of string representations of the entries
  @return the {@link AccessControlList} instance