public function __construct($server)
 {
     $this->server = $server;
     $this->client = new ActivitiClient();
     $this->client->setUrl($this->server->host, $this->server->port, $this->server->protocol);
     $this->client->setCredentials($this->server->username, $this->server->password);
 }
 public function enableDebug($enable)
 {
     $this->client->setDebug($enable);
 }