/**
  * Переадресация
  *
  * @param $url
  * @param null $message
  */
 public function redirect($url, $message = null)
 {
     if (!self::$_useFlowController) {
         parent::redirect($url, $message);
     }
     CApp::getApp()->beans->serializeBean(self::getStatefullBean());
     echo json_encode(array("action" => "redirect", "url" => $url, "message" => $message, "beanId" => self::getStatefullBean()->getBeanId()));
 }