private function copyMap($package_map, &$result = NULL)
	{
		$result   = (array) $result;
		$manager  = $this->composer->getRepositoryManager();
		$packages = $manager->getLocalRepository()->getPackages();

		foreach ($packages as $package) {
			$package_name = $package->getName();
			$package_root = rtrim($this->getInstallPath($package), '/\\' . DIRECTORY_SEPARATOR);

			if (!isset($package_map[$package_name])) {
				continue;
			}

			$this->io->write(sprintf(
				self::TAB . 'Copying files from %s',
				substr($package_root, strlen(getcwd()))
			));

			foreach ($package_map[$package_name] as $a => $b) {
				$a =  trim($a, '/\\' . DIRECTORY_SEPARATOR);
				$b = ltrim($b, '/\\' . DIRECTORY_SEPARATOR);
				$result = array_replace_recursive(
					$this->copy(
						$package_root . DIRECTORY_SEPARATOR . $a,
						getcwd() . DIRECTORY_SEPARATOR . $b,
						$package_name
					),
					$result
				);
			}
		}
	}