ConstantPoolGen cp = clazz.getConstantPool();
// obsolete, but neccesary to execute the InvokeContext
InstConstraintVisitor icv = new InstConstraintVisitor();
icv.setConstantPoolGen(cp);
// vistor to build the frame information
ExecutionVisitor ev = new ExecutionVisitor();
ev.setConstantPoolGen(cp);
Method[] methods = clazz.getMethods();
for (int i = 0; i < methods.length; i++) {
MethodGen method = new MethodGen(methods[i], clazz.getClassName(), cp);