for (Name typeName : localStates.keySet()) {
List<MutableFeatureId> addedFids = applyDiff(typeName, transactionRequest);
requestedInsertFids.addAll(addedFids);
}
TransactionResponse transactionResponse = wfs.issueTransaction(transactionRequest);
List<FeatureId> insertedFids = transactionResponse.getInsertedFids();
int deleteCount = transactionResponse.getDeleteCount();
int updatedCount = transactionResponse.getUpdatedCount();
info(getClass().getSimpleName(), "::commit(): Updated: ", updatedCount, ", Deleted: ",
deleteCount, ", Inserted: ", insertedFids);
if (requestedInsertFids.size() != insertedFids.size()) {
throw new IllegalStateException("Asked to add " + requestedInsertFids.size()