6970717273747576777879
TransactionMap map = local.get(); State state = map.removeState(serverName); if (state == null) { throw new IllegalStateException("No current transaction for [" + serverName + "]"); } state.commit(); if (map.isEmpty()) { local.remove(); } }