/**
  * Create and configure project (Translation Service)
  *
  * @param string $url
  * @param string $name
  * @param string $description
  * @param string $delivery
  *
  * @return bool
  * @throws TranslationProxy_Api_Error
  * @throws Exception
  */
 public function create($url, $name, $description, $delivery = 'xmlrpc')
 {
     global $sitepress;
     $networking = wpml_tm_load_tp_networking();
     $project_creation = new WPML_TP_Project_Creation($this, $sitepress, $networking, array('name' => $name, 'description' => $description, 'url' => $url, 'delivery_method' => $delivery, 'sitekey' => WP_Installer_API::get_site_key('wpml'), 'client_external_id' => WP_Installer_API::get_ts_client_id()));
     $response_project = $project_creation->run();
     $this->id = $response_project->id;
     $this->access_key = $response_project->accesskey;
     $this->ts_id = $response_project->ts_id;
     $this->ts_access_key = $response_project->ts_accesskey;
     if (isset($response_project->polling_method) && $response_project->polling_method !== $delivery) {
         $this->service->delivery_method = $response_project->polling_method;
     }
     return true;
 }