protected function redirect($sUrl, $fIsPermanent = false)
    {
        $nCode = $fIsPermanent ? 301 : 302;
        Headers::getInstance()
            ->addByHttpCode($nCode)
            ->add('Location: '.$sUrl)
            ->run();
        exit;
    }