code: public DbDevImportInfo import_device(Database database, String deviceName)
              throws DevFailed {
          DevVarLongStringArray info;
  
          //	ALWAYS Authorized (e.g. import TAC itself)
          int tmp_access = database.access;
          database.access = TangoConst.ACCESS_WRITE;
          try {
              DeviceData argIn = new DeviceData();
              argIn.insert(deviceName);
              //System.out.println("DbImportDevice " + deviceName);
              DeviceData argOut = command_inout(database, "DbImportDevice", argIn);
              info = argOut.extractLongStringArray();
              database.access = tmp_access;
          } catch (DevFailed e) {
              database.access = tmp_access;
              throw e;
          }
          return new DbDevImportInfo(info);
      }
docs: ==========================================================================