Status.STATUS_MARKED_ROLLBACK, Status.STATUS_ROLLING_BACK, Status.STATUS_UNKNOWN };
// SystemException and NotSupportedException from tm.begin()
Set<Exception> ees = new HashSet<Exception>();
ees.add(new SystemException("KABOOM!"));
ees.add(new NotSupportedException("KABOOM!"));
// Loop through all states states twice changing the exception thrown
// from tm.begin()
for (int i = 0 ; i < allStates.length ; i++ ) {
Iterator<Exception> iterator = ees.iterator();