Activity activity = selectActivity(model);
ActivityTestCaseGraphResourceFactoryImpl resFactory = new ActivityTestCaseGraphResourceFactoryImpl();
Resource res = resFactory.createResource(URI.createFileURI(outFile));
try {
TCGActivity tcgActivity = UML2TCGActivity.transform(activity);
ActTCGContinuityHelper.addContinuityConstraints(tcgActivity);
res.getContents().add(tcgActivity);
} catch (YouShallNotDoThisException e2) {
// TODO Auto-generated catch block
e2.printStackTrace();