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:  // Account/getID
       {
         String $result = null;
         $result = this.getID ();
         out = $rh.createReply();
         out.write_string ($result);
         break;
       }

       case 1:  // Account/deposit
       {
         int amount = in.read_ulong ();
         this.deposit (amount);
         out = $rh.createReply();
         break;
       }

       case 2:  // Account/withdraw
       {
         int amount = in.read_ulong ();
         this.withdraw (amount);
         out = $rh.createReply();
         break;
       }

       case 3:  // Account/balance
       {
         int $result = (int)0;
         $result = this.balance ();
         out = $rh.createReply();
         out.write_long ($result);
         break;
       }

       case 4:  // Account/_toString
       {
         String $result = null;
         $result = this._toString ();
         out = $rh.createReply();
         out.write_string ($result);
         break;
       }

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

    return out;
  } // _invoke