private function injectFormThemeConfiguration(ContainerBuilder $container)
    {
        if (($twigConfiguration = $container->getParameter('admingenerator.twig')) !== false) {
            $resources = $container->getParameter('twig.form.resources');
            $alreadyIn = in_array('bootstrap_3_layout.html.twig', $resources);

            if ($twigConfiguration['use_form_resources'] && !$alreadyIn) {
                $key = array_search('form_div_layout.html.twig', $resources) ? array_search('form_div_layout.html.twig', $resources) : 0;
                // Insert right after form_div_layout.html.twig if exists
                array_splice($resources, ++$key, 0, array('bootstrap_3_layout.html.twig'));

                $container->setParameter('twig.form.resources', $resources);
            }
        }
    }