protected function addStatusMessage($type, $messages)
    {
        if (!is_array($messages)) {
            $messages = array($messages);
        }
        $this->addData('status', array($type => $messages));
    }