// }
Label firstCatchLabel = new Label();
mv.visitLabel(firstCatchLabel);
mv.visitVarInsn(ASTORE, 1);
mv.visitTypeInsn(NEW, "java/lang/RuntimeException");
mv.visitInsn(DUP);
mv.visitLdcInsn("Cannot find method due to a security exception");
mv.visitVarInsn(ALOAD, 1);
mv.visitMethodInsn(INVOKESPECIAL, "java/lang/RuntimeException", "<init>",
"(Ljava/lang/String;Ljava/lang/Throwable;)V");
mv.visitInsn(ATHROW);