@ResponseBody
public DetailedModuleDefinitionResource info(@PathVariable("type") ModuleType type,
@PathVariable("name") String name) {
ModuleDefinition def = moduleDefinitionService.findDefinition(name, type);
if (def == null) {
throw new NoSuchModuleException(name, type);
}
return detailedAssembler.toResource(def);
}