code: public void setCriterion(Criterion criterion) {
  		this.criterion = criterion;
  
  		// Replace the handler if it is of type featureList 
  		// (when we have a criterion it is better to use that as it has no limitation on returned items)
  		if (exportCsvHandler == null || exportCsvHandler instanceof ExportFeatureListToCsvHandler) {
  			this.exportCsvHandler = new ExportSearchToCsvHandler(mapWidget.getMapModel(), layer, criterion);
  		} else if (exportCsvHandler instanceof ExportSearchToCsvHandler) {
  			((ExportSearchToCsvHandler) exportCsvHandler).setCriterion(criterion);
  		}
  	}
docs: Set the search criterion.
  
  @param criterion the criterion to set