code: public DbDevImportInfo import_device(final DeviceProxy deviceProxy) throws DevFailed {
  
          checkIfUseDb(deviceProxy, "import_device()");
  
          if (deviceProxy.getDb_dev() == null) {
              deviceProxy.setDb_dev(new DbDevice(deviceProxy.devname, deviceProxy.url.host,
                  deviceProxy.url.strPort));
          }
          // checkIfTango("import_device");
          if (deviceProxy.url.protocol == TANGO) {
              return deviceProxy.getDb_dev().import_device();
          } else {
              return new DbDevImportInfo(dev_inform(deviceProxy));
          }
      }
docs: ==========================================================================