public function generate(array $bundleList, $bundleBundleNamespace, $bundleName, $targetFilename)
    {
        $absoluteList = [];
        foreach ($bundleList as $namespace) {
            $absoluteList[] = '\\' . str_replace('/', '\\', $namespace) .
                '\\' . str_replace('/', '', $namespace);
        }

        if (is_array($this->additions)) {
            $absoluteList = array_merge($absoluteList, $this->additions);
        }

        $absoluteList = array_unique($absoluteList);
        sort($absoluteList);

        $parameters = array(
            'namespace' => str_replace('/', '\\', $bundleBundleNamespace),
            'bundleName' => $bundleName,
            'bundleClassList' => $absoluteList
        );

        $this->renderFile('bundle/DynamicBundleBundle.php.twig', $targetFilename, $parameters);
    }