Get a module by ID
AppModule? getModule(String id) { return _modules.firstWhereOrNull((m) => m.id == id); }