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 = rh.createReply();
    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: // org/eclipse/persistence/testing/Remote/SunCORBA/CORBAServerManager/createRemoteSessionController
        {
          org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController __result =
              null;
          __result = this.createRemoteSessionController();
          org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionControllerHelper
              .write(out, __result);
          break;
        }

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

    return out;
  } // _invoke
 public static synchronized org.omg.CORBA.TypeCode type() {
   if (__typeCode == null) {
     __typeCode =
         org.omg
             .CORBA
             .ORB
             .init()
             .create_interface_tc(
                 org.eclipse.persistence.sessions.remote.corba.sun
                     .CORBARemoteSessionControllerHelper.id(),
                 "CORBARemoteSessionController");
   }
   return __typeCode;
 }
 public org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController
     createRemoteSessionController() {
   org.omg.CORBA.portable.InputStream _in = null;
   try {
     org.omg.CORBA.portable.OutputStream _out = _request("createRemoteSessionController", true);
     _in = _invoke(_out);
     org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController __result =
         org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionControllerHelper.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 createRemoteSessionController();
   } finally {
     _releaseReply(_in);
   }
 } // createRemoteSessionController