DBusMessage m = mc.getReply(); if (m instanceof DBusErrorMessage) error = ((DBusErrorMessage) m).getException(); else if (m instanceof MethodReply) {
Message m = mc.getReply(); if (m instanceof Error) error = ((Error) m).getException(); else if (m instanceof MethodReturn) {
   private synchronized void checkReply()   {      if (mc.hasReply()) {         DBusMessage m = mc.getReply();         if (m instanceof DBusErrorMessage)            error = ((DBusErrorMessage) m).getException();         else if (m instanceof MethodReply) {            try {               rval = (ReturnType) RemoteInvocationHandler.convertRV(m.getSig(), m.getParameters(), me);            } catch (DBusExecutionException DBEe) {               error = DBEe;            } catch (DBusException DBe) {               if (DBusConnection.EXCEPTION_DEBUG) DBe.printStackTrace();               error = new DBusExecutionException(DBe.getMessage());            }         }      }   }