return ((LocalRequest) sr.request).s_invoke(handler);
{ LocalRequest lrq = (LocalRequest) sr.request; return lrq.s_invoke(handler); } } catch (gnuForwardRequest f) { try { return ((ObjectImpl) f.forward_reference)._invoke(f.forward_reference._request( operation, true ) ); } catch (RemarshalException e) {  throw new NO_IMPLEMENT(); } }
  public InputStream invoke(org.omg.CORBA.Object target, OutputStream output)                     throws ApplicationException  {    streamRequest sr = (streamRequest) output;    LocalRequest lr = (LocalRequest) sr.request;    InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, false);    if (handler instanceof dynImpHandler)      {        // The local request known how to handle it, but the different        // method must be called.        lr.invoke();        // The encapsulation will inherit orb, endian, charsets, etc.        cdrOutput buf = sr.createEncapsulation();        // Write all request parameters to the buffer stream.        if (lr.env().exception() != null)          {            try              {                UnknownUserException uex =                  (UnknownUserException) lr.env().exception();                throw new ApplicationException(uex.except.type().id(),                                               uex.except.create_input_stream()                                              );              }            catch (BadKind ex)              {                InternalError ierr = new InternalError();                ierr.initCause(ex);                throw ierr;              }          }        if (lr.return_value() != null)          lr.return_value().write_value(buf);        NamedValue a;        try          {            for (int i = 0; i < lr.arguments().count(); i++)              {                a = lr.arguments().item(i);                if (a.flags() == ARG_INOUT.value ||                    a.flags() == ARG_INOUT.value                   )                  {                    a.value().write_value(buf);                  }              }          }        catch (Bounds ex)          {            InternalError ierr = new InternalError();            ierr.initCause(ex);            throw ierr;          }        return buf.create_input_stream();      }    else      return ((LocalRequest) sr.request).s_invoke(handler);  }