private function hydrateTemplatesNode(NodeBuilder $node)
    {
        $node
            ->booleanNode('default')
                ->defaultFalse()
            ->end()
            ->scalarNode('path')
                ->cannotBeEmpty()
            ->end()
            ->arrayNode('contents')
                ->prototype('scalar')
                    ->cannotBeEmpty()
                ->end()
            ->end()
        ;

        return $node;
    }