public function generate(BundleInterface $bundle, $entity, $prefix, array $sections, $behatTest)
    {
        $this->bundle = $bundle;
        $this->entity = $entity;
        $this->prefix = $prefix;
        $this->sections = $sections;

        $this->generatePagePartEntity();
        if ($entity != 'AbstractPagePart') {
            $this->generateFormType();
            $this->generateResourceTemplate();
            $this->generateSectionConfig();
            if ($behatTest) {
                $this->generateBehatTest();
            }
        }
    }