if (numLabels >= 0 && index >= numLabels)
                            throw new IndexOutOfBoundsException("Found " + (index + 1) + " labels in record, expected " + numLabels);