docs: private void validateConfiguration(AdvancedCache<byte[], byte[]> cache) {
        Configuration configuration = cache.getCacheConfiguration();
        if (!configuration.transaction().transactionMode().isTransactional()) {
           throw log.expectedTransactionalCache(cache.getName());
        }
        if (configuration.locking().isolationLevel() != IsolationLevel.REPEATABLE_READ) {
           throw log.unexpectedIsolationLevel(cache.getName());
        }
  
        //TODO because of ISPN-7672, optimistic and total order transactions needs versions. however, versioning is currently broken
        if (configuration.transaction().lockingMode() == LockingMode.OPTIMISTIC ||
              configuration.transaction().transactionProtocol() == TransactionProtocol.TOTAL_ORDER) {
           //no Log. see comment above
           throw new IllegalStateException(
                 String.format("Cache '%s' cannot use Optimistic neither Total Order transactions.", cache.getName()));
        }
     }