{
IndexRow indexRow = null;
Deque<IndexRow> indexRows = indexRowCache.get(indexRowType);
if (indexRows != null && !indexRows.isEmpty()) {
indexRow = indexRows.removeLast();
indexRow.reset();
}
if (indexRow == null) {
indexRow = adapter.newIndexRow(indexRowType);
}
return indexRow;