if (display instanceof HasEventBus) {
HasEventBus hasEventBus = (HasEventBus) display;
hasEventBus.setEventBus(eventBus);
}
if (display instanceof HasPlaceController) {
HasPlaceController hasPlaceController = (HasPlaceController) display;
hasPlaceController.setPlaceController(placeController);
}
display.initDesktop();
// Start ActivityManager for the main widget with our ActivityMapper
ActivityMapper activityMapper = new PresenterActivityMapper((PlacePresenterFactory) GWT.create(PlacePresenterFactory.class));