protected function createConfigGroupForm(ConfigGroup $group = null)
    {
        $formBuilder = $this->createFormBuilder();
        if ($group) {
            $values = $this->container->get('admin.configuration.configvalue_manager')->getRepository()->findByConfigGroupId($group->getId());
            foreach ($values as $configValue) {
                $sub = $this->container->get('form.factory')->createNamedBuilder(
                    str_replace(':', '___', $configValue->getPath()),
                    'admin_configuration_configvalue_'.$configValue->getConfigType()->getFormType(),
                    $configValue
                );
                $formBuilder->add($sub);
            }
        }

        return $formBuilder->getForm();
    }