// implementation of doSomething()
  public void doSomething() throws java.rmi.RemoteException {
    String codebase = System.getProperty("java.rmi.server.codebase", "");

    try {
      if (useNewInvoke) {
        ref.invoke(
            this, $method_doSomething_1, new java.lang.Object[] {codebase}, 3082155412933025001L);
      } else {
        java.rmi.server.RemoteCall call =
            ref.newCall((java.rmi.server.RemoteObject) this, operations, 1, interfaceHash);
        try {
          java.io.ObjectOutput out = call.getOutputStream();
          out.writeObject(codebase);
        } catch (java.io.IOException e) {
          throw new java.rmi.MarshalException("error marshalling arguments", e);
        }
        ref.invoke(call);
        ref.done(call);
      }
    } catch (java.lang.RuntimeException e) {
      throw e;
    } catch (java.rmi.RemoteException e) {
      throw e;
    } catch (java.lang.Exception e) {
      throw new java.rmi.UnexpectedException("undeclared checked exception", e);
    }
  }
 // implementation of tellServerName(String)
 public void tellServerName(java.lang.String $param_String_1) throws java.rmi.RemoteException {
   try {
     if (useNewInvoke) {
       ref.invoke(
           this,
           $method_tellServerName_0,
           new java.lang.Object[] {$param_String_1},
           -5180633734615762942L);
     } else {
       java.rmi.server.RemoteCall call =
           ref.newCall((java.rmi.server.RemoteObject) this, operations, 0, interfaceHash);
       try {
         java.io.ObjectOutput out = call.getOutputStream();
         out.writeObject($param_String_1);
       } catch (java.io.IOException e) {
         throw new java.rmi.MarshalException("error marshalling arguments", e);
       }
       ref.invoke(call);
       ref.done(call);
     }
   } catch (java.lang.RuntimeException e) {
     throw e;
   } catch (java.rmi.RemoteException e) {
     throw e;
   } catch (java.lang.Exception e) {
     throw new java.rmi.UnexpectedException("undeclared checked exception", e);
   }
 }