SootMethod tokenConstructor = tokenClass
.getMethod("void <init>(java.lang.String)");
Local tokenLocal = Jimple.v().newLocal(localName,
RefType.v(tokenClass));
body.getLocals().add(tokenLocal);
units.insertBefore(Jimple.v().newAssignStmt(tokenLocal,
Jimple.v().newNewExpr(RefType.v(tokenClass))), insertPoint);
units.insertBefore(Jimple.v().newInvokeStmt(
Jimple.v().newSpecialInvokeExpr(tokenLocal,
tokenConstructor.makeRef(),
StringConstant.v(token.toString()))), insertPoint);