diff --git a/src/Handler.php b/src/Handler.php
index 33ef754e29861a796126128b6d51f183405abf61..56da1fbfecb6ce347cf4ac2204ff1acbbacec8e2 100644
--- a/src/Handler.php
+++ b/src/Handler.php
@@ -43,6 +43,19 @@ class Handler {
     $this->io = $io;
   }
 
+  /**
+   * Retrieve a package from the current composer process.
+   *
+   * @param string $name
+   *   Name of the package to get from the current composer installation.
+   *
+   * @return \Composer\Package\PackageInterface
+   *   The package.
+   */
+  protected function getPackage($name) {
+    return $this->composer->getRepositoryManager()->getLocalRepository()->findPackage($name, '*');
+  }
+
   /**
    * Post project create event to execute the scaffolding.
    *