public void stop() {

    if (this.uiManagerController != null) {
      this.uiManagerController.stop();
      this.uiManagerController = null;
    }

    if (this.httpController != null) {
      this.httpController.stop();
      this.httpController = null;
    }
    if (serverManager != null) {
      serverManager.stop();
    }
    System.out.println("Proxy Stopped");
  }
 public final void removeServerManager() {
   if (this.serverManager != null) {
     serverManager.stop();
     serverManager = null;
   }
 }