/**
  * @param DbalConnection $connection
  * @param null|string $alternativeKey If null then the dbname is used as key
  * @return void
  */
 public function add($connection, $alternativeKey = null)
 {
     if (is_null($alternativeKey)) {
         $alternativeKey = $connection->config()['dbname'];
     }
     $this->set($alternativeKey, $connection);
 }