code: private static void exportDeviceWithDatabase(final DeviceImpl dev, final String hostName, final String pid)
              throws DevFailed {
          XLOGGER.entry(dev.getName());
  
          final ORB orb = ORBManager.getOrb();
          // Activate the CORBA object incarnated by the Java object
          final Device_5 d = dev._this(orb);
  
          // Get the object id and store it
  
          final POA poa = ORBManager.getPoa();
  
          try {
              dev.setObjId(poa.reference_to_id(d));
          } catch (final WrongAdapter e) {
              throw DevFailedUtils.newDevFailed(e);
          } catch (final WrongPolicy e) {
              throw DevFailedUtils.newDevFailed(e);
          }
  
          final DeviceExportInfo info = new DeviceExportInfo(dev.getName(), orb.object_to_string(d), hostName,
                  Integer.toString(DeviceImpl.SERVER_VERSION), pid, dev.getClassName());
          DatabaseFactory.getDatabase().exportDevice(info);
  
          XLOGGER.exit();
      }
docs: description : This method exports a device to the outside world. This is done by sending its CORBA network
  parameter (mainly the IOR) to the Tango database
  
  @param dev
  @throws DevFailed