}
case SEARCHER_TYPE_REGULAR_EXPRESSION:
return new RegexSearcher(searchTerm, caseSensitive);
case SEARCHER_TYPE_BOOLEAN:
try {
return new BooleanSearcher(searchTerm, caseSensitive);
}catch (ParserException e) {
throw new TvBrowserException(PluginManagerImpl.class, "parser.error","Invalid input: {0}", e.getLocalizedMessage());
}
default: throw new IllegalArgumentException("Unknown searcher type: " + type);
}