public function transform(SplFileInfo $file)
    {
        try {
            $contentFile = $this->fileToContentFile->transform($file);
            $contentItem = $this->buildContentItem($contentFile);

            return $contentItem;
        } catch (\Exception $e) {
            throw new TransformationFailure($e->getMessage(), 0, $e, $file->getRealPath());
        }
    }