/**
  * Process the stop-import action.
  */
 public function stopImportAction()
 {
     $process = $this->_helper->db->getTable('Process')->find($this->_getParam('processId'));
     if (Omeka_Job_Process_Dispatcher::stopProcess($process)) {
         $this->_helper->flashMessenger('The import process has been stopped.', 'success');
         $this->_helper->redirector->goto('index');
     } else {
         $this->_helper->flashMessenger('The import process could not be stopped.', 'error');
         $this->_assignFeedForm();
         $this->_assignImports();
         return $this->render('index');
     }
 }