public long getTransactionRollbackRate() {
long result = 0;
for (String cacheName : getCacheNames()) {
Ehcache cache = cacheManager.getEhcache(cacheName);
if (cache != null) {
SampledCacheStatistics stats = cache.getSampledCacheStatistics();
result += stats.getCacheXaRollbacksMostRecentSample();
}
}
return result;
}