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:  // pgrid/service/corba/repair/RepairHandle/fixNode
       {
         String footpath = in.read_string ();
         pgrid.service.corba.repair.RepairIssue issue = pgrid.service.corba.repair.RepairIssueHelper.read (in);
         this.fixNode (footpath, issue);
         out = $rh.createReply();
         break;
       }

       case 1:  // pgrid/service/corba/repair/RepairHandle/fixSubtree
       {
         String footpath = in.read_string ();
         String subtreePrefix = in.read_string ();
         pgrid.service.corba.repair.RepairIssue issues[] = pgrid.service.corba.repair.RepairHandlePackage.IssueArrayHelper.read (in);
         this.fixSubtree (footpath, subtreePrefix, issues);
         out = $rh.createReply();
         break;
       }

       case 2:  // pgrid/service/corba/repair/RepairHandle/replace
       {
         String failedPath = in.read_string ();
         pgrid.service.corba.repair.RepairIssue issues[] = pgrid.service.corba.repair.RepairHandlePackage.IssueArrayHelper.read (in);
         pgrid.service.corba.PeerReference $result = null;
         $result = this.replace (failedPath, issues);
         out = $rh.createReply();
         pgrid.service.corba.PeerReferenceHelper.write (out, $result);
         break;
       }

       case 3:  // pgrid/service/corba/repair/RepairHandle/pushSolution
       {
         pgrid.service.corba.repair.RepairSolution solution = pgrid.service.corba.repair.RepairSolutionHelper.read (in);
         this.pushSolution (solution);
         out = $rh.createReply();
         break;
       }

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

    return out;
  } // _invoke