} catch (UnknownHostException ex) { throw new BAD_OPERATION("Cannot resolve the local host address"); }
  protected IOR createIOR(Connected_objects.cObject ref)    throws BAD_OPERATION  {    IOR ior = new IOR();    ior.key = ref.key;    ior.Internet.port = ref.port;    if (ref.object instanceof ObjectImpl)      {        ObjectImpl imp = (ObjectImpl) ref.object;        if (imp._ids().length > 0)          ior.Id = imp._ids() [ 0 ];      }    if (ior.Id == null)      ior.Id = ref.object.getClass().getName();    try      {        ior.Internet.host = InetAddress.getLocalHost().getHostAddress();        ior.Internet.port = ref.port;      }    catch (UnknownHostException ex)      {        throw new BAD_OPERATION("Cannot resolve the local host address");      }    return ior;  }