EventBus eventBus = new SimpleEventBus();
final PlaceController placeController = new PlaceController(eventBus);
Desktop display = GWT.create(Desktop.class);
if (display instanceof HasEventBus) {
HasEventBus hasEventBus = (HasEventBus) display;
hasEventBus.setEventBus(eventBus);
}
if (display instanceof HasPlaceController) {
HasPlaceController hasPlaceController = (HasPlaceController) display;
hasPlaceController.setPlaceController(placeController);
}