MethodChooser chooser = (MethodChooser) choosers.get(i);
Object obj = chooser.getValue();
if(obj instanceof Integer) {
group.add(new ParamModifyAction(instruction, i, chooser.getValue()));
} else {
MethodLocator ml = (MethodLocator)obj;
String className = ml.getClassLocator().getFullName();
String methodName = ml.getMethod().getName();
String typeName = ml.getMethod().getDescriptor().getRawDesc();
int index = this.cf.getPool().indexOfMethodRef(className, methodName, typeName);
// TODO: verify that this makes sense.
// The logic could be in the action?
if (index != -1) {
group.add(new ParamModifyAction(instruction, i, Integer.valueOf(index)));