SootClass emulatorClass = Scene.v().loadClassAndSupport(
"platform.emachine.java.Emulator");
SootMethod theRunMethod = emulatorClass
.getMethodByName("runAndWait");
String fileName = directory + "/out.ecd";
units.insertBefore(Jimple.v().newInvokeStmt(
Jimple.v().newStaticInvokeExpr(theRunMethod.makeRef(),
StringConstant.v(fileName))), insertPoint);
// Local actorLocal = Jimple.v().newLocal("actor", actorType);
// body.getLocals().add(actorLocal);