Simple_delegate delegate = (Simple_delegate) impl._get_delegate();
SimpleDelegate delegate = (SimpleDelegate) impl._get_delegate();
  public synchronized void invoke() throws BAD_INV_ORDER  {    waitWhileBusy();    complete = false;    running = true;    if (ior == null)      throw new BAD_INV_ORDER("Set IOR property first");    try      {        Forwardings:        while (true)          {            try              {        p_invoke();                break Forwardings;              }            catch (ForwardRequest e)              {                try                  {                    ObjectImpl impl = (ObjectImpl) e.forward;                    Simple_delegate delegate =                      (Simple_delegate) impl._get_delegate();                    ior = delegate.getIor();                  }                catch (Exception ex)                  {                    BAD_PARAM bad =                      new BAD_PARAM("Unsupported forwarding target");                    bad.initCause(ex);                    throw bad;                  }              }          }      }    finally      {        running = false;        complete = true;      }  }