protected function patchResource($path)
    {
        $resourceName = strtolower($this->model);
        $ref = "->arrayNode('$resourceName')";

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

        $ref = "->arrayNode('classes')
                    ->addDefaultsIfNotSet()
                    ->children()";

        $nodeDeclaration = <<<EOF
                        ->arrayNode('$resourceName')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('model')
                                ->end()
                                ->scalarNode('controller')
                                ->end()
                                ->scalarNode('form')
                                ->end()
                            ->end()
                        ->end()
EOF;

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