public function dependencyToDslText(DependencyInterface $dependency)
    {
        $type = $dependency->getType();

        if (!array_key_exists($type, $this->dependncyTypeToDslText)) {
            throw new \InvalidArgumentException('Unknown dependncy type "' . $type . '"');
        }

        $dslText = $this->nodeToDslText($dependency->getFromNode())
                 . $this->dependncyTypeToDslText[$type]
                 . $this->nodeToDslText($dependency->getToNode());

        return $dslText;
    }