private function addAttributeToDefinition(ContainerInterface $container, $name)
    {
        if (!$container->hasDefinition('metamodels.file-attributes')) {
            $container->setDefinition('metamodels.file-attributes', new AttributeFileDefinition());
        }

        $container->getDefinition('metamodels.file-attributes')->add($name);
    }