code: public static Map<String, String> criterionToFilters(Criterion criterion, MapModel mapModel) {
  		if (criterion != null) {
  			if (criterion instanceof AttributeCriterion) {
  				return attributeCriterionToFilters((AttributeCriterion) criterion);
  
  			} else if (criterion instanceof GeometryCriterion) {
  				return geometryCriterionToFilters((GeometryCriterion) criterion, mapModel);
  
  			} else if (criterion instanceof AndCriterion) {
  				return andCriterionToFilters((AndCriterion) criterion, mapModel);
  
  			} else if (criterion instanceof OrCriterion) {
  				return orCriterionToFilters((OrCriterion) criterion, mapModel);
  
  			} else {
  				return null;
  			}
  		} else {
  			return new LinkedHashMap<String, String>();
  		}
  	}
docs: This does the same as dtoConverterservice but uses strings for filters instead of (serverside) filter objects.
  
  @param criterion
  @param mapModel