code: protected void export_device(final DeviceImpl dev) throws DevFailed {
          Util.out4.println("DeviceClass::export_device() arrived");
          Device d;
  
          //
          // Activate the CORBA object incarnated by the Java object
          //
  
          final Util tg = Util.instance();
          final ORB orb = tg.get_orb();
          d = dev._this(orb);
  
          //
          // Get the object id and store it
          //
  
          byte[] oid = null;
          final POA r_poa = tg.get_poa();
          try {
              oid = r_poa.reference_to_id(d);
          } catch (final Exception ex) {
              final StringBuffer o = new StringBuffer("Can't get CORBA reference ID for device ");
              o.append(dev.get_name());
  
              Except.throw_exception("API_CantGetDevObjectID", o.toString(),
                      "DeviceClass.export_device()");
          }
          dev.set_obj_id(oid);
  
          //
          // Before exporting, check if database is used
          //
          if (Util._UseDb == false) {
              return;
              //
              // Prepare sent parameters
              //
          }
  
          final DbDevExportInfo exp_info = new DbDevExportInfo(dev.get_name(), orb
                  .object_to_string(d), tg.get_host_name(), tg.get_version_str());
  
          //
          // Call db server
          //
  
          tg.get_database().export_device(exp_info);
  
          Util.out4.println("Leaving DeviceClass::export_device method()");
  
          //
          // Mark the device as exported
          //
  
          dev.set_exported_flag(true);
      }
docs: Export a device.
  <p>
  Send device network parameter to TANGO database. The main parameter sent
  to database is the CORBA stringified device IOR.
  
  @param dev The device to be exported
  @throws DevFailed If the command sent to the database failed. Click <a
  href="../../tango_basic/idl_html/Tango.html#DevFailed"
  >here</a> to read <b>DevFailed</b> exception specification