public static function listenToContextLoadFactoriesEvent(sfEvent $event)
    {
        /** @param sfContext $context */
        $context = $event->getSubject();

        if (sfContext::getInstance()->getConfiguration()->getEnvironment() == 'dev') {
            $context->getResponse()->addStylesheet(twAdmin::getProperty('web_dir') . '/css/bootstrap.css', 'first');
            $context->getResponse()->addStylesheet(twAdmin::getProperty('web_dir') . '/css/bootstrap-responsive.css');
            $context->getResponse()->addStylesheet(twAdmin::getProperty('web_dir') . '/css/smoothness/jquery-ui-1.10.1.custom.css');
        } else {
            $context->getResponse()->addStylesheet(twAdmin::getProperty('web_dir') . '/css/bootstrap.min.css', 'first');
            $context->getResponse()->addStylesheet(twAdmin::getProperty('web_dir') . '/css/bootstrap-responsive.min.css');
            $context->getResponse()->addStylesheet(twAdmin::getProperty('web_dir') . '/css/smoothness/jquery-ui-1.10.1.custom.min.css');
        }
        $context->getResponse()->addStylesheet(twAdmin::getProperty('web_dir') . '/css/jquery-ui-timepicker-addon.css');

        $context->getResponse()->addStylesheet(twAdmin::getProperty('web_dir') . '/css/twadmin.css', 'last');

        if (sfContext::getInstance()->getConfiguration()->getEnvironment() == 'dev') {
            $context->getResponse()->addJavascript(twAdmin::getProperty('web_dir') . '/js/jquery-1.9.1.js');
            $context->getResponse()->addJavascript(twAdmin::getProperty('web_dir') . '/js/bootstrap.js');
            $context->getResponse()->addJavascript(twAdmin::getProperty('web_dir') . '/js/jquery-ui-1.10.1.custom.js');
        } else {
            $context->getResponse()->addJavascript(twAdmin::getProperty('web_dir') . '/js/jquery-1.9.1.min.js');
            $context->getResponse()->addJavascript(twAdmin::getProperty('web_dir') . '/js/bootstrap.min.js');
            $context->getResponse()->addJavascript(twAdmin::getProperty('web_dir') . '/js/jquery-ui-1.10.1.custom.min.js');
        }
        $context->getResponse()->addJavascript(twAdmin::getProperty('web_dir') . '/js/jquery-ui-timepicker-addon.js');
        $context->getResponse()->addJavascript(twAdmin::getProperty('web_dir') . '/js/jquery-ui-datepicker-pl.js');

        $context->getResponse()->addJavascript(twAdmin::getProperty('web_dir') . '/js/twadmin.js', 'last');
    }