protected function parseConditions(ContainerInterface $container)
    {
        if ($container->hasDefinition(ModelRelationshipDefinitionInterface::NAME)) {
            $definition = $container->getDefinition(ModelRelationshipDefinitionInterface::NAME);
        } else {
            $definition = new DefaultModelRelationshipDefinition();
            $container->setDefinition(ModelRelationshipDefinitionInterface::NAME, $definition);
        }

        $this->parseRootCondition($container, $definition);
        $this->parseParentChildConditions($definition);
    }