if (DBusConnection.EXCEPTION_DEBUG) DBEe.printStackTrace();
   public void registerService(String servicename) throws DBusException   {      if (!servicename.matches(SERVICE_REGEX)) throw new DBusException("Invalid service name");      synchronized (this.servicenames) {         UInt32 rv;         try {             rv = _dbus.RequestName(servicename,                   new UInt32(DBus.DBUS_NAME_FLAG_REPLACE_EXISTING |                     DBus.DBUS_NAME_FLAG_DO_NOT_QUEUE));         } catch (DBusExecutionException DBEe) {            throw new DBusException(DBEe.getMessage());         }         switch (rv.intValue()) {            case DBus.DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER: break;            case DBus.DBUS_REQUEST_NAME_REPLY_IN_QUEUE: throw new DBusException("Failed to register service name");            case DBus.DBUS_REQUEST_NAME_REPLY_EXISTS: throw new DBusException("Failed to register service name");            case DBus.DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER: break;            default: break;         }         this.servicenames.add(servicename);      }   }