public static void postProcess(final String key, final TransactionPostProcess process) { TransactionCommand command = currentCommand.get(); if (command != null) { ModificationQueue modificationQueue = command.getModificationQueue(); if (modificationQueue != null) { modificationQueue.postProcess(key, process); } else { logger.log(Level.SEVERE, "Got empty changeSet from command!"); } } else { logger.log( Level.SEVERE, "Trying to register transaction post processing while outside of transaction!"); } }