public function writePact(): bool
    {
        // you do not want to save the reified json
        $pactJson = \json_encode($this->message);

        return $this->pactMessage->update($pactJson, $this->config->getConsumer(), $this->config->getProvider(), $this->config->getPactDir());
    }