protected function loadRouteConfig()
    {
        $xml = $this->getNode('router');
        if (!$xml instanceof SimpleXmlElement) {
            return $this;
        }

        $config = $this->getRouteConfig($xml);
        if (!$config) {
            return $this;
        }

        $this->manifest['application_config']['router']['routes'] = $config;
        return $this;
    }