*/
public Privilege[] getPrivileges(String absPath, Set<Principal> principals) throws PathNotFoundException, RepositoryException {
checkInitialized();
checkValidNodePath(absPath);
checkPermission(absPath, Permission.READ_AC);
CompiledPermissions perms = acProvider.compilePermissions(principals);
try {
int bits = perms.getPrivileges(resolver.getQPath(absPath));
return (bits == PrivilegeRegistry.NO_PRIVILEGE) ?
new Privilege[0] :
privilegeRegistry.getPrivileges(bits);
} finally {
perms.close();
}
}