public function getAlert($namespace)
    {

        $messagesToPrint = $this->getView()->plugin('flash_messenger')->render($namespace);

        if (empty($messagesToPrint)) {
            return null;
        }

        $alert = $this->getView()->plugin('sxb_alert')->__invoke($messagesToPrint);

        if (in_array($namespace, $this->availableNamespaces)) {

            if (PluginFlashMessenger::NAMESPACE_DEFAULT === $namespace) {
                $namespace = PluginFlashMessenger::NAMESPACE_INFO;
            }

            $alert->$namespace();
        }

        if ($this->isBlock) {
            $alert->block();
        }

        return $alert;
    }