@Override
  public void postInitialize() throws Exception {
    load();

    startHub();

    Hudson.getInstance().getActions().add(this);
  }
 public HttpResponse doRestart() throws IOException, ServletException {
   validateAdmin();
   try {
     channel.call(new StopHubCallable());
   } catch (Exception e) {
     throw new IOException(e);
   }
   channel.close();
   try {
     startHub();
     waitForHubLaunch();
   } catch (Exception e) {
     throw new IOException(e);
   }
   return HttpResponses.forwardToPreviousPage();
 }