List<TextToken> fsmTokenList = new ArrayList<TextToken>();
Iterator<? extends Annotation> tokenItr = tokenList.iterator();
while (tokenItr.hasNext()) {
Annotation tokenAnnot = tokenItr.next();
fsmTokenList.add(new TextTokenAdapter(tokenAnnot));
}
// Add dummy token to end of the list
// This is a workaround for cases where a meaningful token occurs at the
// end of the list. Since there are no more tokens, the FSM cannot push