/**
  * Configures the GerritServer config to connect to the provided ssh server.
  *
  * @param sshd the server to connect to
  * @param gerritServer the config to configure
  * @param reconnect if the GerritServer connection should be restarted after the configuration
  *     change
  * @see #getConfigFor(SshServer, IGerritHudsonTriggerConfig)
  * @see GerritServer#stopConnection()
  * @see GerritServer#startConnection()
  */
 public static void configureFor(SshServer sshd, GerritServer gerritServer, boolean reconnect) {
   if (reconnect) {
     gerritServer.stopConnection();
   }
   configureFor(sshd, gerritServer);
   if (reconnect) {
     gerritServer.startConnection();
   }
 }