private function populateCategoryGroup(CategoryGroupModel $categoryGroup, array $categoryGroupDefinition, $categoryGroupHandle)
{
$categoryGroup->setAttributes(['handle' => $categoryGroupHandle, 'name' => $categoryGroupDefinition['name'], 'hasUrls' => $categoryGroupDefinition['hasUrls'], 'template' => $categoryGroupDefinition['template'], 'maxLevels' => $categoryGroupDefinition['maxLevels']]);
$this->populateCategoryGroupLocales($categoryGroup, $categoryGroupDefinition['locales']);
$fieldLayout = Craft::app()->schematic_fields->getFieldLayout($categoryGroupDefinition['fieldLayout']);
$categoryGroup->setFieldLayout($fieldLayout);
}