cdrBufOutput buffer = new cdrBufOutput();
BufferedCdrOutput buffer = new BufferedCdrOutput();
  public static void invoke(ServerRequest request, InvokeHandler target,                            Streamable result                           )  {    try      {        int IN = ARG_IN.value;        int OUT = ARG_OUT.value;        // Write all arguments to the buffer output stream.        cdrBufOutput buffer = new cdrBufOutput();        gnuNVList args = new gnuNVList();        request.arguments(args);        for (int i = 0; i < args.count(); i++)          {            if ((args.item(i).flags() & IN) != 0)              {                args.item(i).value().write_value(buffer);              }          }        ServiceRequestAdapter h = new ServiceRequestAdapter();        target._invoke(request.operation(), buffer.create_input_stream(), h);        InputStream in = h.reply.create_input_stream();        if (h.isException)          {            // Write the exception information            gnuAny exc = new gnuAny();            universalHolder uku = new universalHolder(h.reply);            exc.insert_Streamable(uku);            request.set_exception(exc);          }        else          {            if (result != null)            {                // Use the holder for the return value, if provided.              result._read(in);              gnuAny r = new gnuAny();              r.insert_Streamable(result);              request.set_result(r);              }            else              {                // Use the universal holder otherwise.                gnuAny r = new gnuAny();                r.insert_Streamable(new streamReadyHolder(in));              }            // Unpack the arguments            for (int i = 0; i < args.count(); i++)              {                if ((args.item(i).flags() & OUT) != 0)                  {                    Any a = args.item(i).value();                    a.read_value(in, a.type());                  }              }          }      }    catch (Bounds ex)      {        throw new InternalError();      }  }