getModule method
Implementation
Module? getModule(final String moduleId)
{
if(!_moduleMap.containsKey(moduleId))
{
return null;
}
ModuleState? state = _moduleMap[moduleId];
// If state is null, return null; otherwise, return the instance property of state.
return state?.instance;
}