code: private void removeAccessControlEntries(final AccessControlList acl, final String principalName)
              throws RepositoryException {
  
          for (final AccessControlEntry e : acl.getAccessControlEntries()) {
              this.removeAccessControlEntry(acl, e, principalName);
          }
      }
docs: Removes all entries from the {@link AccessControlList} that match the given principal name.
  
  @param acl
  the acl from which the entries should be removed
  @param principalName
  the name of the principal whose matching entries should be removed. If the wildcard '*' is used, all
  entries will be removed.
  
  @throws RepositoryException
  if the entries could not be removed