InstructionList ilist = genMethod.getInstructionList();
Instruction r=null;
InstructionHandle new_target=null;
if (method.isStatic()) {
ilist.insert(InstructionFactory.MONITORENTER);
ilist.insert(new LDC(jc.getClassNameIndex()));
ilist.append(new LDC(jc.getClassNameIndex()));
new_target = ilist.getEnd();
ilist.append(InstructionFactory.MONITOREXIT);
} else {
ilist.insert(InstructionFactory.MONITORENTER);
ilist.insert(InstructionFactory.ALOAD_0);