public function importIndex(
        Repository $repository,
        string $data,
        string $format
    ) {
        $items = $this
            ->exporterCollection
            ->getExporterByName($format)
            ->formatToItems($data);

        $repository->addItems($items);
        $repository->flush();
    }