ISPN-4196 Local transaction not removed from transaction table with keySet, entrySet, values operations
ISPN-3556: Reorder the affectedKeys member so any exceptions thrown don't affect rollback of locked keys.