private static void removeBaseAclEntries(List<AclEntry> entries) {
    Iterables.removeIf(entries, new Predicate<AclEntry>() {
      @Override
      public boolean apply(AclEntry input) {
        return input == null || input.getName() == null;
      }
    });
  }
Removes basic permission acls (unamed acls) from the list of acl entries
@param entries acl entries to remove from.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/HdfsUtils.java