public function findPackage($name, $version) { if (isset($this->packages[$name])) { return $this->packages[$name]; } return null; }