new ExecutionWrapperMethodPatcher(
targetClass.getMethods()[methodIdx], targetClass.getClassName(),
constPoolGen );
// get the wrapped method
targetClass.getMethods()[methodIdx] = mp.install();
// and update the class because of this change
targetClass.setConstantPool(
constPoolGen.getFinalConstantPool() );