}
@Override
public CacheBuilder<K, V> setTransactionEnabled(IsolationLevel isolationLevel, Mode mode) {
if (!Caching.isSupported(OptionalFeature.TRANSACTIONS)) {
throw new InvalidConfigurationException("transactionsEnabled");
}
cacheConfiguration.setTransactionMode(mode);
cacheConfiguration.setIsolationLevel(isolationLevel);
return this;
}