code/libraries/joomlatools/component/koowa/dispatcher/behavior/decoratable.php
protected function _beforeDispatch(KDispatcherContextInterface $context)
    {
        if ($this->getDecorator() != 'joomla')
        {
            $app = JFactory::getApplication();

            if ($app->isSite()) {
                $app->setTemplate('system');
            }
        }
    }
protected function _beforeDispatch(KDispatcherContextInterface $context)
    {
        if ($this->getDecorator() != 'joomla')
        {
            $app = JFactory::getApplication();

            if ($app->isSite()) {
                $app->setTemplate('system');
            }
        }
    }
protected function _beforeDispatch ( KDispatcherContextInterface $ context ) { if ( $ this -> getDecorator ( ) != 'joomla' ) { $ app = JFactory :: getApplication ( ) ; if ( $ app -> isSite ( ) ) { $ app -> setTemplate ( 'system' ) ; } } }
Set the Joomla application context

@param   KDispatcherContextInterface $context A command context object
@return 	void
Set the Joomla application context