private function addParameter($path, $bundleName, $name)
    {
        $formPath = $this->configuration['namespace'] . '\\' . $this->model . 'Type';
        $ref = '<parameters>';
        $replaceBefore = true;

        $declaration = <<<EOF
        <parameter key="$bundleName.form.type.$name.class">$formPath</parameter>
EOF;

        if ($this->refExist($path, $declaration)) {
            return;
        }

        if (!$this->refExist($path, $ref)) {
            $ref = '    <services>';
            $replaceBefore = false;
            $declaration = <<<EOF
    <parameters>
$declaration
    </parameters>

EOF;
        }

        $this->dumpFile($path, "\n" . $declaration, $ref, $replaceBefore);
    }