public function dispatch(...$params)
    {
        // Verify if the method is 'allowed' in our own context.
        $allowedMethods = $this->getAllowedMethods();
        if ($allowedMethods !== null && ! in_array($this->request->getMethod(), $allowedMethods)) {
            // Not allowed. Return to sender.
        }

        $apiMethod = $this->route->getValue('api_method', 'list');
        return call_user_func_array(array($this, $apiMethod), $params);
    }