Defaults.setDispatcher(dispatcher);
/*
* setup the service, usually done in gin
*/
Resource resource = new Resource(GWT.getModuleBaseURL());
final ModelChangeAnnotatedService service = GWT.create(ModelChangeAnnotatedService.class);
((RestServiceProxy) service).setResource(resource);
final ModelChangedEventHandlerImpl handler = new ModelChangedEventHandlerImpl();
eventBus.addHandler(ModelChangeEvent.TYPE, handler);