if (res instanceof CompositeOutcomeImple)
res = ((CompositeOutcomeImple) res).get(CoordinationOutcome.class.getName());
if (res instanceof CoordinationOutcome)
{
CoordinationOutcome co = (CoordinationOutcome) res;
switch (co.result())
{
case TwoPhaseResult.CONFIRMED:
case TwoPhaseResult.HEURISTIC_CONFIRM:
throw new CoordinatorConfirmedException();
case TwoPhaseResult.FINISH_OK: