public function buildDocument(string $content, array $metadata): Contracts\Document
    {
        $document = $this->documentResolver;
        $document->setContent($content);
        $document->set($metadata);

        return $document;
    }