protected static function authenticate($controller, $action, $params) {
        $auth = new Authenticate(static::$userId, $controller, $action);
        if (!$auth->execute()) {
            $controller->accessDenied($action, $params);
            exit;
        }
    }