public function write($data) { return array('mimetype' => $this->writeSpec['target'], 'content' => \OCA\Richdocuments\Converter::convert($data['content'], $this->writeSpec['format'], $this->writeSpec['extension'])); }