}
final String dispatchImplKey = "errai.dispatcher_implementation";
if (erraiServiceConfig.containsKey(dispatchImplKey)) {
if (AsyncDispatcher.class.getName().equals(erraiServiceConfig.getString(dispatchImplKey))) {
throw new ErraiBootstrapFailure("Cannot start Errai CDI. You have have configured the service to use the "
+ AsyncDispatcher.class.getName()
+ " dispatcher implementation. Due to limitations of Weld, you must use the "
+ SimpleDispatcher.class.getName() + " in order to use this module.");
}
}