*
* @param result the result
*/
public void write(SearchResult result) {
SearchController controller = this.readController();
controller.setSearchCriteria(this.getCriteria());
this.getCriteria().getSearchFilterPageCursor().setTotalRecordCount(
result.getMaxQueryHits());
controller.setSearchResult(result);
controller.setWasSearched(true);
try {
showResults();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();