code: public Object setSelectedSearch(Object criteria) {
  		// filterField leegmaken
  		if (getTableWidget().getTextFilterField() != null) {
  			getTableWidget().getTextFilterField().setText("");
  		}
  		// if Referable == null, empty filterForm and execute filter
  		if (criteria == null) {
  			if (dataProvider.supportsFiltering()) {
  				getFilterForm().getNewFormObjectCommand().execute();
  			}
  			executeFilter();
  			return null;
  		}
  		List resultList = getList(criteria);
  		if (dataProvider.supportsFiltering()) {
  			// adapt filterForm to reflect referable criteria
  			if ((resultList == null) || (resultList.size() > 0)) // fill in
  																	// referable
  			{
  				getFilterForm().setFormObject(criteria);
  			} else { // empty filterForm and execute
  				getFilterForm().getNewFormObjectCommand().execute();
  				executeFilter();
  			}
  		}
  		if (resultList != null && resultList.size() == 1) {
  			// return the detailObject
  			// return loadEntityDetails(resultList.get(0));
  			return loadSimpleEntity(resultList.get(0));
  		}
  		return resultList;
  	}
docs: note: differs from previous method to allow setting of formObject on
  filterForm. Will probably end up in refactoring of dataeditorwidget.
  
  @param criteria
  formObject to set on FilterForm.
  @return