public function getFlashMessages()
    {
        if (is_null($this->_flashMessages)) {
            $this->_flashMessages = FlashMessages::getInstance();
        }
        return $this->_flashMessages;
    }