// content type filter
String sContentType = Val.chkStr(parser.getRequestParameter("contentType"));
try {
if (sContentType.length() > 0) {
SearchFilterContentTypes fContentTypes = new SearchFilterContentTypes();
fContentTypes.setSelectedContentType(
SearchEngineCSW.AimsContentTypes.valueOf(sContentType).name());
criteria.setSearchFilterContentTypes(fContentTypes);
}
} catch (IllegalArgumentException ex) {
// if invalid content type simply do not create filter