docs: private SynchronizationAdapter createSynchronizationAdapter(Transaction transaction) {
        SynchronizationAdapter adapter = new SynchronizationAdapter(transaction, RemoteXid.create(uuid));
        try {
           transaction.registerSynchronization(adapter);
        } catch (RollbackException | SystemException e) {
           throw new CacheException(e);
        }
        if (trace) {
           log.tracef("Registered synchronization for transaction %s. Sync=%s", transaction, adapter);
        }
        return adapter;
     }