code: private boolean sortAceList(List<CmsAccessControlEntry> aces) {
  
          // sort the list of entries
          Collections.sort(aces, CmsAccessControlEntry.COMPARATOR_ACE);
          // after sorting just the first 2 positions come in question
          for (int i = 0; i < Math.min(aces.size(), 2); i++) {
              CmsAccessControlEntry acEntry = aces.get(i);
              if (acEntry.getPrincipal().equals(CmsAccessControlEntry.PRINCIPAL_OVERWRITE_ALL_ID)) {
                  return true;
              }
          }
          return false;
      }
docs: Sorts the given list of {@link CmsAccessControlEntry} objects.<p>
  
  The the 'all others' ace in first place, the 'overwrite all' ace in second.<p>
  
  @param aces the list of ACEs to sort
  
  @return <code>true</code> if the list contains the 'overwrite all' ace