public function runMap($file, $batch, $index = null)
    {
        $mapping = $this->resolve($file);

        $mapping->setIndex($index);

        $mapping->map();

        $this->repository->log($file, $batch);

        $this->note('<info>Mapped:</info> '.$file);
    }