}
batchGetItemResult = db.batchGetItem(batchGetItemRequest);
Map<String, BatchResponse> responses = batchGetItemResult.getResponses();
for (String tableName : responses.keySet()) {
BatchResponse batchResponse = responses.get(tableName);
List<Object> objects = null;
if (resultSet.get(tableName) != null) {
objects = resultSet.get(tableName);
} else {
objects = new LinkedList<Object>();
}
List<Map<String, AttributeValue>> items = batchResponse.getItems();
for (Map<String, AttributeValue> item : items) {
objects.add((Object) marshallIntoObject(tableNameToClassMapper.get(tableName), item));
}
resultSet.put(tableName, objects);