synchronized (pendingCalls) {
if (null == pendingCalls) ((MethodCall) m).setReply(new Error("org.freedesktop.DBus.Local", "org.freedesktop.DBus.Local.Disconnected", 0, "s", new Object[] { "Disconnected" })); else synchronized (pendingCalls) {
   private void sendMessage(Message m)   {      try {         transport.mout.writeMessage(m);         if (m instanceof MethodCall) {            if (0 == (m.getFlags() & Message.Flags.NO_REPLY_EXPECTED))               synchronized (pendingCalls) {                  pendingCalls.put(m.getSerial(),(MethodCall) m);               }         }      } catch (Exception e) {         if (DBusConnection.EXCEPTION_DEBUG) e.printStackTrace();         if (m instanceof MethodCall && e instanceof DBusExecutionException)             try {               ((MethodCall)m).setReply(new Error(m, e));            } catch (DBusException DBe) {}         else if (m instanceof MethodCall)            try {               ((MethodCall)m).setReply(new Error(m, new DBusExecutionException("Message Failed to Send: "+e.getMessage())));            } catch (DBusException DBe) {}         else if (m instanceof MethodReturn)            try {               transport.mout.writeMessage(new Error(m, e));            } catch(IOException IOe) {               if (EXCEPTION_DEBUG)                  IOe.printStackTrace();                        } catch(DBusException IOe) {               if (EXCEPTION_DEBUG)                  e.printStackTrace();                        }      }   }