// Create a new instance of a StringValueHandler
int index = cpg.addMethodref(STRING_VALUE_HANDLER, "<init>", "()V");
il.append(new NEW(cpg.addClass(STRING_VALUE_HANDLER)));
il.append(DUP);
il.append(DUP);
il.append(new INVOKESPECIAL(index));
// Store new Handler into a local variable
final LocalVariableGen handler =
methodGen.addLocalVariable("rt_to_string_handler",
Util.getJCRefType(STRING_VALUE_HANDLER_SIG),