* @param xid a XID
* @throws XAException when an error occurs
*/
public void rollbackInternal(Xid xid) throws XAException {
LiveCacheStatisticsWrapper liveCacheStatisticsWrapper = (LiveCacheStatisticsWrapper) cache.getLiveCacheStatistics();
liveCacheStatisticsWrapper.xaRollback();
XidTransactionID xidTransactionID = transactionIDFactory.createXidTransactionID(xid);
Set<SoftLock> softLocks = softLockFactory.collectAllSoftLocksForTransactionID(xidTransactionID);
for (SoftLock softLock : softLocks) {
if (softLock.isExpired()) {
softLock.lock();