code: public void add_device(Database database, DbDevInfo devinfo) throws DevFailed {
          if (!database.isAccess_checked()) checkAccess(database);
  
          DeviceData argIn = new DeviceData();
          argIn.insert(devinfo.toStringArray());
          command_inout(database, "DbAddDevice", argIn);
          //System.out.println(devinfo.name + " created");
      }
docs: ==========================================================================