code: public long getTimeLeftBeforeTransactionTimeout(boolean errorRollback) throws RollbackException
     {
        if (tm instanceof org.jboss.tm.TransactionTimeoutConfiguration)
           return ((org.jboss.tm.TransactionTimeoutConfiguration)tm).getTimeLeftBeforeTransactionTimeout(errorRollback);
  
        return 0;
     }
docs: {@inheritDoc}