final RecordScan scan = new RecordScan();
scan.setStartRecordId(newDep.id.getMaster());
scan.setRecordFilter(new RecordVariantFilter(newDep.id.getMaster(), varProps));
LRepository repository = indexUpdateBuilder.getRepository();
LTable table = repository.getTable(indexUpdateBuilder.getTable());
final IdRecordScanner scanner = table.getScannerWithIds(scan);
IdRecord next;
while ((next = scanner.next()) != null) {
try {
final Record record = VersionTag.getIdRecord(next, indexUpdateBuilder.getVTag(), table, repository);
result.add(record);
} catch (RecordNotFoundException rnfe) {
//ok
} catch (VersionNotFoundException vnfe) {
//ok
}
}
scanner.close();
return result;
}