CoordinationOutcome out = (CoordinationOutcome) res;
if (out.result() == TwoPhaseResult.CANCELLED)
passed = true;
else
System.out.println("Result is: "+TwoPhaseResult.stringForm(out.result()));
}
else
System.out.println("Outcome is: "+res);
}
catch (NoActivityException ex)