private Account process(UUID accountId, Consumer<Account> consumer)
      throws AccountNotFoundException, OptimisticLockingException {

    return conflictRetrier.get(() -> {
      Optional<Account> possibleAccount = loadAccount(accountId);