public function redirect($key, $config = [], $statusCode = 302)
    {
        $router = $this->getService('Router');
        $url = $this->getService('Url');
        $urlNew = $url->generate($key, $config);
        $router->redirect($urlNew, $statusCode);
    }