MethodVisitor mv = cv.visitMethod(ACC_PUBLIC, "getHandle", "()Ljavax/ejb/Handle;", null,
new String[] {"java/rmi/RemoteException"});
mv.visitCode();
mv.visitTypeInsn(NEW, "java/rmi/RemoteException");
mv.visitInsn(DUP);
mv.visitLdcInsn("This method should be called on the remote object and not locally."
+ "It is only available as a client view.");
mv.visitMethodInsn(INVOKESPECIAL, "java/rmi/RemoteException", "<init>", "(Ljava/lang/String;)V");
mv.visitInsn(ATHROW);
mv.visitMaxs(0, 0);