synchronized (pendingCalls) {
if (null != pendingCalls) synchronized (pendingCalls) {
      public void handle(DBusSignal s)      {         if (s instanceof org.freedesktop.DBus.Local.Disconnected) {            if (Debug.debug) Debug.print(Debug.WARN, "Handling Disconnected signal from bus");            try {               Error err = new Error(                     "org.freedesktop.DBus.Local" , "org.freedesktop.DBus.Local.Disconnected", 0, "s", new Object[] { "Disconnected" });               synchronized (pendingCalls) {                  long[] set = pendingCalls.getKeys();                  for (long l: set) if (-1 != l) {                     MethodCall m = pendingCalls.remove(l);                     if (null != m)                        m.setReply(err);                  }               }               synchronized (pendingErrors) {                  pendingErrors.add(err);               }            } catch (DBusException DBe) {}         } else if (s instanceof org.freedesktop.DBus.NameAcquired) {            busnames.add(((org.freedesktop.DBus.NameAcquired) s).name);         }      }