* @return milliseconds left before timeout
*/
private long assertNotTimedOut() {
try {
if (Thread.interrupted()) {
throw new TransactionInterruptedException("transaction interrupted");
}
Transaction transaction = getCurrentTransaction();
EhcacheXAResource xaResource = transactionToXAResourceMap.get(transaction);