in src/main/java/org/apache/sling/starter/access/models/AceUtils.java [61:69]
public static Map<Privilege, String> getPrivilegeLongestPathMap(Session jcrSession) throws RepositoryException {
AccessControlManager accessControlManager = jcrSession.getAccessControlManager();
Privilege jcrAll = accessControlManager.privilegeFromName(PrivilegeConstants.JCR_ALL);
Map<Privilege, String> privilegeToLongestPath = new HashMap<>();
privilegeToLongestPath.put(jcrAll, jcrAll.getName());
toLongestPath(jcrAll.getName(), jcrAll, privilegeToLongestPath);
return privilegeToLongestPath;
}