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: