public Revokedconsent findByPrimaryKey(RevokedconsentKey arg0)
     throws RemoteException, FinderException {
   while (true) {
     if (!Util.isLocal(this)) {
       InputStream in = null;
       try {
         try {
           org.omg.CORBA_2_3.portable.OutputStream out =
               (org.omg.CORBA_2_3.portable.OutputStream) _request("findByPrimaryKey", true);
           out.write_value(arg0, RevokedconsentKey.class);
           in = (InputStream) _invoke(out);
           return (Revokedconsent) in.read_Object(Revokedconsent.class);
         } catch (ApplicationException ex) {
           in = (InputStream) ex.getInputStream();
           String id = in.read_string();
           if (id.equals("IDL:javax/ejb/FinderEx:1.0")) {
             throw (FinderException) in.read_value(FinderException.class);
           }
           throw new UnexpectedException(id);
         } catch (RemarshalException ex) {
           continue;
         }
       } catch (SystemException ex) {
         throw Util.mapSystemException(ex);
       } finally {
         _releaseReply(in);
       }
     } else {
       ServantObject so =
           _servant_preinvoke(
               "findByPrimaryKey", com.ardais.bigr.iltds.beans.RevokedconsentHome.class);
       if (so == null) {
         continue;
       }
       try {
         RevokedconsentKey arg0Copy = (RevokedconsentKey) Util.copyObject(arg0, _orb());
         Revokedconsent result =
             ((com.ardais.bigr.iltds.beans.RevokedconsentHome) so.servant)
                 .findByPrimaryKey(arg0Copy);
         return (Revokedconsent) Util.copyObject(result, _orb());
       } catch (Throwable ex) {
         Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
         if (exCopy instanceof FinderException) {
           throw (FinderException) exCopy;
         }
         throw Util.wrapException(exCopy);
       } finally {
         _servant_postinvoke(so);
       }
     }
   }
 }
 public void remove(Object arg0) throws RemoteException, RemoveException {
   while (true) {
     if (!Util.isLocal(this)) {
       InputStream in = null;
       try {
         try {
           OutputStream out = _request("remove__java_lang_Object", true);
           Util.writeAny(out, arg0);
           _invoke(out);
           return;
         } catch (ApplicationException ex) {
           in = (InputStream) ex.getInputStream();
           String id = in.read_string();
           if (id.equals("IDL:javax/ejb/RemoveEx:1.0")) {
             throw (RemoveException) in.read_value(RemoveException.class);
           }
           throw new UnexpectedException(id);
         } catch (RemarshalException ex) {
           continue;
         }
       } catch (SystemException ex) {
         throw Util.mapSystemException(ex);
       } finally {
         _releaseReply(in);
       }
     } else {
       ServantObject so = _servant_preinvoke("remove__java_lang_Object", javax.ejb.EJBHome.class);
       if (so == null) {
         continue;
       }
       try {
         Object arg0Copy = (Object) Util.copyObject(arg0, _orb());
         ((javax.ejb.EJBHome) so.servant).remove(arg0Copy);
         return;
       } catch (Throwable ex) {
         Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
         if (exCopy instanceof RemoveException) {
           throw (RemoveException) exCopy;
         }
         throw Util.wrapException(exCopy);
       } finally {
         _servant_postinvoke(so);
       }
     }
   }
 }
 public PtsOperation create() throws CreateException, RemoteException {
   while (true) {
     if (!Util.isLocal(this)) {
       InputStream in = null;
       try {
         try {
           OutputStream out = _request("create", true);
           in = (InputStream) _invoke(out);
           return (PtsOperation) in.read_Object(PtsOperation.class);
         } catch (ApplicationException ex) {
           in = (InputStream) ex.getInputStream();
           String id = in.read_string();
           if (id.equals("IDL:javax/ejb/CreateEx:1.0")) {
             throw (CreateException) in.read_value(CreateException.class);
           }
           throw new UnexpectedException(id);
         } catch (RemarshalException ex) {
           continue;
         }
       } catch (SystemException ex) {
         throw Util.mapSystemException(ex);
       } finally {
         _releaseReply(in);
       }
     } else {
       ServantObject so =
           _servant_preinvoke("create", com.ardais.bigr.iltds.beans.PtsOperationHome.class);
       if (so == null) {
         continue;
       }
       try {
         PtsOperation result =
             ((com.ardais.bigr.iltds.beans.PtsOperationHome) so.servant).create();
         return (PtsOperation) Util.copyObject(result, _orb());
       } catch (Throwable ex) {
         Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
         if (exCopy instanceof CreateException) {
           throw (CreateException) exCopy;
         }
         throw Util.wrapException(exCopy);
       } finally {
         _servant_postinvoke(so);
       }
     }
   }
 }
 public EJBHome getEJBHome() throws RemoteException {
   while (true) {
     if (!Util.isLocal(this)) {
       InputStream in = null;
       try {
         try {
           OutputStream out = _request("_get_EJBHome", true);
           in = _invoke(out);
           return (EJBHome) in.read_Object(EJBHome.class);
         } catch (ApplicationException ex) {
           in = ex.getInputStream();
           String id = in.read_string();
           throw new UnexpectedException(id);
         } catch (RemarshalException ex) {
           continue;
         }
       } catch (SystemException ex) {
         throw Util.mapSystemException(ex);
       } finally {
         _releaseReply(in);
       }
     } else {
       ServantObject so = _servant_preinvoke("_get_EJBHome", javax.ejb.HomeHandle.class);
       if (so == null) {
         continue;
       }
       try {
         EJBHome result = ((javax.ejb.HomeHandle) so.servant).getEJBHome();
         return (EJBHome) Util.copyObject(result, _orb());
       } catch (Throwable ex) {
         Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
         throw Util.wrapException(exCopy);
       } finally {
         _servant_postinvoke(so);
       }
     }
   }
 }
 /*     */ public java.lang.Object invoke(
     java.lang.Object paramObject, final Method paramMethod, java.lang.Object[] paramArrayOfObject)
     /*     */ throws Throwable
       /*     */ {
   /* 126 */ String str = this.classData.getIDLNameTranslator().getIDLName(paramMethod);
   /*     */
   /* 128 */ DynamicMethodMarshaller localDynamicMethodMarshaller =
       this.pm.getDynamicMethodMarshaller(paramMethod);
   /*     */
   /* 131 */ Delegate localDelegate = null;
   /*     */ try {
     /* 133 */ localDelegate = StubAdapter.getDelegate(this.stub);
     /*     */ } catch (SystemException localSystemException1) {
     /* 135 */ throw Util.mapSystemException(localSystemException1);
     /*     */ }
   /*     */ java.lang.Object localObject1;
   /* 138 */ if (!isLocal()) {
     /*     */ try {
       /* 140 */ InputStream localInputStream = null;
       /*     */ try
       /*     */ {
         /* 143 */ OutputStream localOutputStream =
             (OutputStream) localDelegate.request(this.stub, str, true);
         /*     */
         /* 148 */ localDynamicMethodMarshaller.writeArguments(
             localOutputStream, paramArrayOfObject);
         /*     */
         /* 151 */ localInputStream =
             (InputStream) localDelegate.invoke(this.stub, localOutputStream);
         /*     */
         /* 155 */ return localDynamicMethodMarshaller.readResult(localInputStream);
         /*     */ } catch (ApplicationException localApplicationException) {
         /* 157 */ throw localDynamicMethodMarshaller.readException(localApplicationException);
         /*     */ } catch (RemarshalException localRemarshalException) {
         /* 159 */ return invoke(paramObject, paramMethod, paramArrayOfObject);
         /*     */ } finally {
         /* 161 */ localDelegate.releaseReply(this.stub, localInputStream);
         /*     */ }
       /*     */ } catch (SystemException localSystemException2) {
       /* 164 */ throw Util.mapSystemException(localSystemException2);
       /*     */ }
     /*     */ }
   /*     */
   /* 168 */ ORB localORB = (ORB) localDelegate.orb(this.stub);
   /* 169 */ ServantObject localServantObject =
       localDelegate.servant_preinvoke(this.stub, str, paramMethod.getDeclaringClass());
   /*     */
   /* 171 */ if (localServantObject == null)
     /* 172 */ return invoke(this.stub, paramMethod, paramArrayOfObject);
   /*     */ try
   /*     */ {
     /* 175 */ localObject1 =
         localDynamicMethodMarshaller.copyArguments(paramArrayOfObject, localORB);
     /*     */
     /* 177 */ if (!paramMethod.isAccessible())
     /*     */ {
       /* 181 */ AccessController.doPrivileged(
           new PrivilegedAction() {
             /*     */ public java.lang.Object run() {
               /* 183 */ paramMethod.setAccessible(true);
               /* 184 */ return null;
               /*     */ }
             /*     */ });
       /*     */ }
     /*     */
     /* 189 */ localObject3 =
         paramMethod.invoke(localServantObject.servant, (java.lang.Object[]) localObject1);
     /*     */
     /* 191 */ return localDynamicMethodMarshaller.copyResult(localObject3, localORB);
     /*     */ } catch (InvocationTargetException localInvocationTargetException) {
     /* 193 */ java.lang.Object localObject3 = localInvocationTargetException.getCause();
     /*     */
     /* 195 */ java.lang.Object localObject4 = (Throwable) Util.copyObject(localObject3, localORB);
     /* 196 */ if (localDynamicMethodMarshaller.isDeclaredException((Throwable) localObject4)) {
       /* 197 */ throw ((Throwable) localObject4);
       /*     */ }
     /* 199 */ throw Util.wrapException((Throwable) localObject4);
     /*     */ } catch (Throwable localThrowable) {
     /* 201 */ if ((localThrowable instanceof ThreadDeath)) {
       /* 202 */ throw ((ThreadDeath) localThrowable);
       /*     */ }
     /*     */
     /* 207 */ throw Util.wrapException(localThrowable);
     /*     */ } finally {
     /* 209 */ localDelegate.servant_postinvoke(this.stub, localServantObject);
     /*     */ }
   /*     */ }