} else {
throw new IllegalArgumentException("For accurate algorithm preload option (-r) is mandatory.");
}
} else if (algorithm == Algorithm.ultimate) {
if (text != null) {
textIterator = new SrxTextIterator(document, languageCode, text, parameterMap);
} else {
textIterator = new SrxTextIterator(document, languageCode, reader, parameterMap);
}
} else if (algorithm == Algorithm.fast) {
if (text != null) {
textIterator = new FastTextIterator(document, languageCode, text, parameterMap);
} else {