code: private void setRequestArgsForCmd(final Request request, final String name,
              final DeviceData data_in, final DevSource src, final ClntIdent ident) throws DevFailed {
          final ORB orb = ApiUtil.get_orb();
  
          request.add_in_arg().insert_string(name);
          request.add_in_arg().insert_any(data_in.extractAny());
          // Add source if any
          if (src != null) {
              final Any any = request.add_in_arg();
              DevSourceHelper.insert(any, src);
          }
          // Add client ident if any
          if (ident != null) {
              final Any any = request.add_in_arg();
              ClntIdentHelper.insert(any, ident);
          }
          request.set_return_type(orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_any));
          request.exceptions().add(DevFailedHelper.type());
      }
docs: ==========================================================================