public function generateDslText(DiagrammInterface $diagramm)
    {
        $dslText = '';

        foreach ($diagramm->getNodes() as $node) {
            $dslText .= $this->nodeToDslText($node);
            $dslText .= ',';

            //Create a note if the note information is set
            $dslText .= $this->noteFromNodeToDslText($node);

            foreach ($node->getDependencies() as $dependency) {
                $dslText .= $this->dependencyToDslText($dependency);
                $dslText .= ',';
            }
        }

        if (substr($dslText, -1, 1) == ',') {
            $dslText = substr($dslText, 0, -1);
        }

        return $dslText;
    }