function paramNameToObsMap = getParamNamesToObsRefMap(modelH)
    % Check for any common parameters accross design model and observer
    % models
    paramNameToObsMap = containers.Map('KeyType', 'char', 'ValueType', 'double');
    obsRefBlks = Simulink.observer.internal.getObserverRefBlocksInBD(modelH);
    observerModels = cell(1,numel(obsRefBlks));
    for idx = 1:numel(obsRefBlks)
        observerModels{idx} = get_param(obsRefBlks(idx), 'ObserverModelName');
        obsMdlH = get_param(observerModels{idx}, 'handle');
        
        if ~Sldv.xform.MdlInfo.isMdlCompiled(obsMdlH)
            obsVarsUsage = Simulink.findVars(observerModels{idx}, ...
                                             'SearchReferencedModels','on'); %#ok<*NASGU>
        else
            obsVarsUsage = Simulink.findVars(observerModels{idx}, ...
                                             'SearchReferencedModels','on', 'SearchMethod','cached');
        end
        for varIdx = 1:length(obsVarsUsage)
            paramNameToObsMap(obsVarsUsage(varIdx).Name) = obsMdlH;
        end
    end
end

