synchronized public void stop() throws BundleException {
synchronized public void stop() throws BundleException { if (restarting) return;
  synchronized public void stop() throws BundleException  {    framework.checkAdminPermission();    Main.shutdown(0);  }