String amplRun = Paths2AMPLRun.transform(paths, tcgActivity,
"PluginOutput");
// Output everything into the Files
try {
ActivityTestCaseGraphResourceFactoryImpl resFactory = new ActivityTestCaseGraphResourceFactoryImpl();
Resource res = resFactory.createResource(URI.createFileURI(actTCGFile.getLocationURI().getPath()));
res.getContents().add(tcgActivity);
ByteArrayOutputStream out = new ByteArrayOutputStream();
res.save(out, null);
actTCGFile.create(new ByteArrayInputStream(out.toByteArray()),
false, null);