CtMethod oldGetValue = WRITE_INVOCATION_CT_TYPE.getDeclaredMethod(GET_VALUE);
CtMethod getValue = CtNewMethod.make(oldGetValue.getReturnType(),
GET_VALUE, oldGetValue.getParameterTypes(),
oldGetValue.getExceptionTypes(), "{return ($w)" + TYPED_VALUE_FIELD + ";}",
setUp);
setUp.addMethod(getValue);
CtMethod oldSetValue = WRITE_INVOCATION_CT_TYPE.getDeclaredMethod(SET_VALUE);
CtMethod setValue = CtNewMethod.make(oldSetValue.getReturnType(),
GET_VALUE, oldSetValue.getParameterTypes(),
oldSetValue.getExceptionTypes(), "{" + TYPED_VALUE_FIELD + " = " +
JavassistToReflect.castInvocationValueToTypeString(getArgumentType(),