protected function getClientTimeout()
    {
        $ext = $this->getServiceManager()->get(common_ext_ExtensionsManager::SERVICE_ID)->getExtensionById('tao');
        $config = $ext->getConfig('js');
        if($config !== null && isset($config['timeout'])){
            return (int)$config['timeout'];
        }
        return 30;
    }