// The "hivemind" module is available here only if the HivemoduleProvider
// has been executed before. This order is defined in the MANIFEST.MF file of the xml module
// The cast is safe since the module is defined in the core.
ModuleDefinitionImpl moduleDefinition = (ModuleDefinitionImpl) registryDefinition.getModule("hivemind");
if (moduleDefinition == null) {
throw new ApplicationRuntimeException("Module 'hivemind' not found.");
}
helper = new ModuleDefinitionHelper(moduleDefinition);
addTranslatorManager(moduleDefinition, errorHandler);