private function createCategory(array $element, $className, BaseElement $parent)
    {
        $newElement = new $className($element);
        $parent->addContentElement($newElement);
        $this->iterate($element['content'], $newElement);
    }