/**
  * {@inheritdoc}
  */
 public function execute()
 {
     if ($this->rootModuleFile->hasPathMapping($this->repositoryPath)) {
         $this->previousMapping = $this->rootModuleFile->getPathMapping($this->repositoryPath);
         $this->rootModuleFile->removePathMapping($this->repositoryPath);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function execute()
 {
     $repositoryPath = $this->mapping->getRepositoryPath();
     if ($this->rootModuleFile->hasPathMapping($repositoryPath)) {
         $this->previousMapping = $this->rootModuleFile->getPathMapping($repositoryPath);
     }
     $this->rootModuleFile->addPathMapping($this->mapping);
 }