}
public List<SearchSuggestion> getGlobalSavedSearchSuggestions(String expression) {
expression = expression.trim().toLowerCase().replaceAll("\\s+", " ");
SavedSearchCriteria criteria = new SavedSearchCriteria();
criteria.addFilterGlobal(true);
criteria.addFilterSearchSubsystem(searchSubsystem);
if (expression.equals("") == false) {
criteria.addFilterName(expression);
}
criteria.setCaseSensitive(false);
criteria.addSortName(PageOrdering.ASC);
//Use CriteriaQuery to automatically chunk/page through criteria query results
CriteriaQueryExecutor<SavedSearch, SavedSearchCriteria> queryExecutor = new CriteriaQueryExecutor<SavedSearch, SavedSearchCriteria>() {
@Override
public PageList<SavedSearch> execute(SavedSearchCriteria criteria) {