protected function renderTemplate(ConfigGroup $group = null)
    {
        $adminPool = $this->container->get('sonata.admin.pool');

        return $this->render(
            'VinceTAdminConfigurationBundle:Configuration:index.html.twig',
            array(
                'configuration_menu' => $this->createMenu(),
                'group' => $group,
                'form' => $this->createConfigGroupForm($group)->createView(),
                'admin_section' => $adminPool->getAdminByAdminCode('admin.configuration.admin.configsection'),
                'admin_group' => $adminPool->getAdminByAdminCode('admin.configuration.admin.configgroup'),
                'admin_value' => $adminPool->getAdminByAdminCode('admin.configuration.admin.configvalue'),
                'admin_type' => $adminPool->getAdminByAdminCode('admin.configuration.admin.configtype'),
            )
        );
    }