config.getResourceProviders().put(MessageBus.class.getName(), new BusProvider(context.getBus()));
config.getResourceProviders().put(RequestDispatcher.class.getName(),
new DispatcherProvider(context.getService().getDispatcher()));
// configure the server-side taskmanager
TaskManagerFactory.setTaskManagerProvider(new TaskManagerProvider() {
public TaskManager get() {
return DefaultTaskManager.get();
}
});