docs: private AccessControlList findAccessList( AccessControlManager acm,
                                                String path ) throws RepositoryException {
          AccessControlPolicy[] policy = acm.getPolicies(path);
  
          if (policy != null && policy.length > 0) {
              return (AccessControlList)policy[0];
          }
  
          policy = acm.getEffectivePolicies(path);
          if (policy != null && policy.length > 0) {
              return (AccessControlList)policy[0];
          }
  
          return null;
      }