public static function resume($params)
 {
     try {
         $return = System::resume();
     } catch (Exception $e) {
         throw new RpcException($e->getMessage(), -31001);
     }
     return $return;
 }
 private function install($force, $clean)
 {
     $this->logger->debug("Checking database status");
     $installed = SourceSystem::checkInstalled();
     if ($installed and $clean) {
         try {
             $this->logger->info("Truncating database");
             SourceSystem::emptyDatabase();
         } catch (Exception $se) {
             throw $se;
         }
         return $this->color->convert("\n%gExtender database cleaned.%n\n");
     }
     if ($installed and is_null($force)) {
         return $this->color->convert("\n%yExtender already installed, use --force to reinstall.%n\n");
     }
     try {
         $this->logger->info("Installing database");
         SourceSystem::installDatabase();
     } catch (Exception $e) {
         throw $e;
     }
     return $this->color->convert("\n%gExtender successfully installed%n\n");
 }