patch.append(new LCONST(0));
patch.append(new LRETURN());
break;
default:
patch.append(new ACONST_NULL());
patch.append(new ARETURN());
}
mg.stripAttributes(true);
mg.setInstructionList(patch);
mg.removeExceptionHandlers();
mg.removeLocalVariables();