if(modelName == null){
return openNLP.getTokenizer(language);
} else if(SIMPLE_MODEL_NAME.equals(modelName)){
return SimpleTokenizer.INSTANCE;
} else { //try to load the configured model
TokenizerModel model;
try {
model = openNLP.getModel(TokenizerModel.class, modelName, null);
} catch (Exception e) {
throw new EngineException("Error while loading the configured OpenNLP "
+ "TokenizerModel '"+modelName+"' ("+getClass().getSimpleName()+" | name="