code: private void removeAccessControlEntry(final AccessControlList acList,
                                            final AccessControlEntry acEntry,
                                            final String principalName) throws RepositoryException {
  
          if (ANY_WILDCARD.equals(principalName) || acEntry.getPrincipal().getName().equals(principalName)) {
              acList.removeAccessControlEntry(acEntry);
          }
      }
docs: Removes the specified access control entry if the given principal name matches the principal associated with the
  entry.
  
  @param acList
  the access control list to remove the entry from
  @param acEntry
  the entry to be potentially removed
  @param principalName
  the name of the principal to match. Use the '*' wildcard to match all principal.
  
  @throws RepositoryException
  if the entry removal failed