protected function findRoute($request_id)
    {
        $routes = $this->config->get('routes');
        foreach ($routes as $pattern => $action) {
            $pattern = '/^' . $pattern . '$/';
            if (preg_match( $pattern, $request_id, $parameters )) {
                $chunks = explode( '::', $action );
                $controller_name = $chunks[0];
                $action_name = isset($chunks[1]) ? $chunks[1] : 'index';
                return array($controller_name, $action_name, $this->cleanParameters($parameters));
            }
        }
        throw new Exception404( "Invalid request '$request_id'" );
    }