protected function createDocument($raw, $rawMetadata, $rawContent)
    {
        return new Document(
            $raw,
            $this->parseMetadata(trim($rawMetadata)),
            $this->parseContent(trim($rawContent))
        );
    }