}
private void processBatchGetRequest(Map<String, Class<?>> tableNameToClassMapper,
Map<String, KeysAndAttributes> requestItems, Map<String, List<Object>> resultSet) {
BatchGetItemResult batchGetItemResult = null;
BatchGetItemRequest batchGetItemRequest = new BatchGetItemRequest();
batchGetItemRequest.setRequestItems(requestItems);
do {
if (batchGetItemResult != null) {
batchGetItemRequest.setRequestItems(batchGetItemResult.getUnprocessedKeys());
}
batchGetItemResult = db.batchGetItem(batchGetItemRequest);
Map<String, BatchResponse> responses = batchGetItemResult.getResponses();
for (String tableName : responses.keySet()) {