public org.omg.CORBA.portable.OutputStream _invoke(
      String $method,
      org.omg.CORBA.portable.InputStream in,
      org.omg.CORBA.portable.ResponseHandler $rh) {
    org.omg.CORBA.portable.OutputStream out = null;
    java.lang.Integer __method = (java.lang.Integer) _methods.get($method);
    if (__method == null)
      throw new org.omg.CORBA.BAD_OPERATION(0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);

    switch (__method.intValue()) {
      case 0: // scs/execution_node/ContainerManager/registerContainer
        {
          try {
            String name = in.read_string();
            scs.core.IComponent ctr = scs.core.IComponentHelper.read(in);
            this.registerContainer(name, ctr);
            out = $rh.createReply();
          } catch (scs.execution_node.ContainerAlreadyExists $ex) {
            out = $rh.createExceptionReply();
            scs.execution_node.ContainerAlreadyExistsHelper.write(out, $ex);
          } catch (scs.execution_node.InvalidContainer $ex) {
            out = $rh.createExceptionReply();
            scs.execution_node.InvalidContainerHelper.write(out, $ex);
          }
          break;
        }

      case 1: // scs/execution_node/ContainerManager/unregisterContainer
        {
          try {
            String name = in.read_string();
            this.unregisterContainer(name);
            out = $rh.createReply();
          } catch (scs.core.InvalidName $ex) {
            out = $rh.createExceptionReply();
            scs.core.InvalidNameHelper.write(out, $ex);
          }
          break;
        }

      default:
        throw new org.omg.CORBA.BAD_OPERATION(0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
    }

    return out;
  } // _invoke
 public scs.core.IComponent getChannel(String name) {
   org.omg.CORBA.portable.InputStream $in = null;
   try {
     org.omg.CORBA.portable.OutputStream $out = _request("getChannel", true);
     $out.write_string(name);
     $in = _invoke($out);
     scs.core.IComponent $result = scs.core.IComponentHelper.read($in);
     return $result;
   } catch (org.omg.CORBA.portable.ApplicationException $ex) {
     $in = $ex.getInputStream();
     String _id = $ex.getId();
     throw new org.omg.CORBA.MARSHAL(_id);
   } catch (org.omg.CORBA.portable.RemarshalException $rm) {
     return getChannel(name);
   } finally {
     _releaseReply($in);
   }
 } // getChannel
 public void _read(org.omg.CORBA.portable.InputStream i) {
   value = scs.core.IComponentHelper.read(i);
 }