public function generate()
{
$annotations = $this->configuration->getOption(CO::ANNOTATION_GROUPS);
foreach ($annotations as $annotation) {
$template = $this->templateFactory->createNamedForElement(TemplateFactory::ELEMENT_ANNOTATION_GROUP, $annotation);
$template = $this->setElementsWithAnnotationToTemplate($template, $annotation);
$template->save();
}
}