public function getWriter()
 {
     if ($this->writer == null) {
         $this->writer = Writer::factory(array('token' => $this->sapiClient->getTokenString(), 'url' => $this->writerUrl));
     }
     return $this->writer;
 }
 public function setUp()
 {
     $this->client = \Keboola\Writer\GoodData\Client::factory(['url' => GOODDATA_WRITER_API_URL, 'token' => STORAGE_API_TOKEN]);
     foreach ($this->client->getWriters() as $writer) {
         if ($writer['writerId'] != FUNCTIONAL_WRITER_ID) {
             $this->client->deleteWriter($writer['writerId']);
         }
     }
 }