code: private DbEventImportInfo getEventImportInfo(String channelName,
                                                   Database dbase,
                                                   DeviceProxy adminDevice)
                                                   throws DevFailed {
          DbEventImportInfo received = null;
          try {
  
              if (dbase != null) {
                  //	Check if info have been set to the device
                  adminDevice = DeviceProxyFactory.get(channelName, dbase.getUrl().getTangoHost());
                  received = adminDevice.get_evt_import_info();
                  if (received == null || !received.channel_exported) {
                      received = dbase.import_event(channelName);
                  }
              } else {
                  //	Get event chanel info object from admin device
                  received = new DbEventImportInfo();
                  adminDevice = DeviceProxyFactory.get(channelName);
  
                  DeviceData data = adminDevice.command_inout("QueryEventChannelIOR");
                  received.channel_ior = data.extractString();
                  received.channel_exported = true;
  
                  // get the hostname where the notifyd should be running
                  IORdump id = new IORdump(null, received.channel_ior);
                  received.host = id.get_hostname();
              }
          } catch (DevFailed df) {
              //Except.print_exception(df);
              if (dbase != null)
                  Except.throw_event_system_failed("API_NotificationServiceFailed",
                          channelName + " has no event channel defined in the database " +
                                  dbase.getUrl().getTangoHost() +
                                  "\nMay be the server is not running.",
                          "EventConsumer.connect_event_channel");
              else
                  Except.throw_event_system_failed("API_NotificationServiceFailed",
                          channelName + " did not returned event channel IOR\n"
                                  + " May be the server is not running.",
                          "EventConsumer.connect_event_channel");
          }
          return received;
      }
docs: ===============================================================