public function importDownload(string $id, string $type = 'original') : Response
    {
        $table = TableRegistry::get('CsvMigrations.Imports');
        $entity = $table->get($id);
        Assert::isInstanceOf($entity, Import::class);

        $path = $entity->get('filename');
        if ('processed' === $type) {
            $path = ImportUtility::getProcessedFile($entity);
        }

        return $this->response->withFile($path, ['download' => true]);
    }