} catch (IllegalStateException ise) {
throw new SystemException("Attempt to rollback a non-tx context", ise);
} catch (SecurityException lse) {
throw new SystemException("Container not authorized to rollback tx", lse);
}
return new InvalidateReferenceException(new TransactionRolledbackException(t));
} else if (t instanceof RemoteException) {
return new InvalidateReferenceException(t);
} else {
EJBException e = (EJBException) t;
return new InvalidateReferenceException(new RemoteException(e.getMessage(), e.getCausedByException()));