throw new Exception("This thread has been stopped");
}
SearchResult result = new SearchResult();
SearchCriteria criteria = this.getSearchContext().getSearchCriteria();
ASearchEngine engine = this.getSearchEngine();
engine.setRequestDefinition(new SearchRequestDefinition(criteria, result));
engine.setHitsOnly(true);
engine.setConnectionTimeoutMs(this.getMaxSearchTime());
engine.setResponseTimeout(this.getMaxSearchTime());
if (LOG.isLoggable(Level.FINER)) {