public function renderCmsBlock(BaseBlock $block, $username, array $options = array())
    {
        $blockTemplate = $this->fetchTemplateBlock($block);
        if ($blockTemplate == "") {
            return "";
        }

        $permalinks = $this->pagesParser
            ->contributor($username)
            ->parse()
            ->permalinksByLanguage();

        $options = array_merge(
            array(
                'block' => $block,
                'permalinks' => $permalinks,
            ),
            $options
        );

        return $this->templating->render($blockTemplate, $options);
    }