public void deregister(UUID transactionId) throws RepositoryException {
synchronized (primaryCache) {
    CacheEntry entry=primaryCache.getIfPresent(transactionId);
    if (entry == null) {
      throw new RepositoryException("transaction with id " + transactionId.toString() + " not registered.");
    }
 else {
      primaryCache.invalidate(transactionId);
      secondaryCache.invalidate(transactionId);
      logger.debug("deregistered transaction {}",transactionId);
    }
  }
}

public void deregister ( UUID transactionId ) throws RepositoryException { synchronized ( primaryCache ) { CacheEntry entry = primaryCache . getIfPresent ( transactionId ) ; if ( entry == null ) { throw new RepositoryException ( "transaction with id " + transactionId . toString ( ) + " not registered." ) ; } else { primaryCache . invalidate ( transactionId ) ; secondaryCache . invalidate ( transactionId ) ; logger . debug ( "deregistered transaction {}" , transactionId ) ; } } }
remove the given transaction from the registry
