if (indexingRecords != null) {
for (int i = 0; i < indexingRecords.size(); i++) {
IndexingRecord record = indexingRecords.elementAt(i);
ByteBuffer currentValue = record.getPersistedDataBuffer();
JODBIndexingAgent indexingAgent = record.getIndexingAgent();
if (currentValue.limit() != 0 && !indexingAgent.removeIndex(offsetId, currentValue, null)) {
throw new JodbIOException("Illegal index state: can't remove index");
}
ByteBuffer pendingValue = record.getPendingDataBuffer();
if (pendingValue.limit() == 0) {
throw new JodbIOException(