private function createOrGetDefinition(IMetaModelDataDefinition $container)
    {
        if ($container->hasMetaModelDefinition()) {
            return $container->getMetaModelDefinition();
        }

        $container->setMetaModelDefinition($definition = new MetaModelDefinition());

        return $definition;
    }