code: public static void initialize(MapWidget mapWidget, SearchHandler searchResultGrid, boolean modalSearch) {
  		SearchWidgetRegistry.mapWidget = mapWidget;
  		searchController = new SearchController(mapWidget, modalSearch);
  		favouritesController = new FavouritesController();
  		if (searchResultGrid != null) {
  			searchController.addSearchHandler(searchResultGrid);
  		}
  	}
docs: ----------------------------------------------------------