for (int i = 0; i < numTokens; i++) {
String term = null;
final int positionIncrement = 1;
try {
final boolean hasNext = buffer.incrementToken();
assert hasNext == true;
term = termAtt.toString();
} catch (final IOException e) {
// safe to ignore, because we know the number of tokens