public function setMode($mode = null, $ignoreIfRenderModeNotAvailable = true)
    {
        $this->_mode = (null === $mode || '' === $mode ? null : $mode);
        $this->_ignoreIfRenderModeNotAvailable = $ignoreIfRenderModeNotAvailable;

        return $this;
    }