public function refineItem($raw)
    {
        $refined = $this->setTemplate($raw);

        if ( ! empty($this->attachments)) {
            $refined = $this->merge($refined, $this->includeAttachments($raw));
        }

        return $refined;
    }