code: public DeviceInfo get_device_info(Database database, String deviceName)
              throws DevFailed {
          if (!database.isAccess_checked()) checkAccess(database);
  
          DeviceData argIn = new DeviceData();
          argIn.insert(deviceName);
          DeviceData argOut = command_inout(database, "DbGetDeviceInfo", argIn);
          DevVarLongStringArray info = argOut.extractLongStringArray();
          return new DeviceInfo(info);
      }
docs: ==========================================================================