long start = System.currentTimeMillis();
if (algorithm == Algorithm.accurate) {
if (text != null) {
textIterator = new AccurateSrxTextIterator(document, languageCode, text);
} else {
throw new IllegalArgumentException("For accurate algorithm preload option (-r) is mandatory.");
}
} else if (algorithm == Algorithm.ultimate) {
if (text != null) {