public function renderComponent($component, &$hasDynamicParts = false)
    {
        if (Kwf_Component_Data_Root::getShowInvisible()) {
            $hasDynamicParts = true;
        }

        $helper = new Kwf_Component_View_Helper_Component();
        $helper->setRenderer($this);
        $content = $helper->component($component);

        $content = $this->_renderPass2($content, $hasDynamicParts);
        Kwf_Component_Cache::getInstance()->writeBuffer();

        foreach (Kwf_Component_Data_Root::getInstance()->getPlugins('Kwf_Component_PluginRoot_Interface_PostRender') as $plugin) {
            $content = $plugin->processOutput($content, $component);
        }

        return $content;
    }