public function transform(SplFileInfo $file)
    {
        try {
            $taxonomyFile = $this->fileToTaxonomyFile->transform($file);
            $taxonomy = $this->buildTaxonomy($taxonomyFile);

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