protected function _actionRoute(AnCommandContext $context)
    {
        //route the application
        $url = clone AnRequest::url();
        $url = $this->_application->getRouter()->parse($url);

        AnRequest::set('get', $url->query);

        $url->query = AnRequest::get('get', 'raw');

        //set the request
        $this->getRequest()->append($url->query);

        $component = substr($this->_request->option, 4);

        if (empty($component)) {
            $context->request->set('option', 'com_application');
            $component = 'application';
        }

        $this->setComponent($component)->dispatch();

        // trigger the onAfterRoute events
        dispatch_plugin('system.onAfterRoute');
    }