public function convertItem(ItemInterface $item)
    {
        $path = $item->getPath(ItemInterface::SNAPSHOT_PATH_RELATIVE);
        $str = new StringWrapper($path);
        $extension = $str->getFirstEndMatch($this->textExtensions);

        if ($extension === '') {
            $extension = pathinfo($path, PATHINFO_EXTENSION);
        }

        return $this->convertContent($item->getContent(), $extension);
    }