injecting ModuleDefinitionRepository instead of ModuleRegistry to ModulesController (XD-937) and XDStreamParser