public function ajaxPreProcess()
 {
     /* PrestaShop demo mode */
     if (defined('_PS_MODE_DEMO_') && _PS_MODE_DEMO_) {
         return;
     }
     /* PrestaShop demo mode*/
     if (!empty($_POST['responseType']) && $_POST['responseType'] == 'json') {
         header('Content-Type: application/json');
     }
     if (!empty($_POST['action'])) {
         $action = $_POST['action'];
         if (isset(self::$skipAction[$action])) {
             $this->next = self::$skipAction[$action];
             $this->nextQuickInfo[] = $this->next_desc = sprintf($this->l('action %s skipped'), $action);
             unset($_POST['action']);
         } elseif (!method_exists(get_class($this), 'ajaxProcess' . $action)) {
             $this->next_desc = sprintf($this->l('action "%1$s" not found'), $action);
             $this->next = 'error';
             $this->error = '1';
         }
     }
     if (!method_exists('Tools14', 'apacheModExists') || Tools14::apacheModExists('evasive')) {
         sleep(1);
     }
 }