function compute_permission_manager($rows)
{
    $pm = new PermissionManager();
    foreach ($rows as $row) {
        /*
        $permission = $row['name'];
        $context_type = $row[CS_ASSERTION_TABLE_FIELDNAME::CONTEXT_TYPE];
        $context = $row[CS_ASSERTION_TABLE_FIELDNAME::CONTEXT];
        */
        $permission = $row[0];
        $context_type = $row[1];
        $context = $row[2];
        $pm->add($permission, $context_type, $context);
    }
    //  error_log("CPM = " . $pm);
    return $pm;
}