protected function generateChildren()
    {
        if (!$this->hasOption('children') || !is_array($this->getOption('children')))
        {
            return;
        }

        $this->insertCopyToChildren();

        if ('before' == $this->propelInsertAt)
        {
            $this->generatePropelChildren();
        }

        foreach ($this->getOption('children') as $routeName => $options)
        {
            $this->addChildByData($routeName, $options);
        }

        if ('after' == $this->propelInsertAt)
        {
            $this->generatePropelChildren();
        }
    }