function [srcCS, origCS] = mdl_get_configset(modelH)
%

%   Copyright 2009-2021 The MathWorks, Inc.

    modelObj = get_param(modelH, 'Object');
    origCS = modelObj.getActiveConfigSet();
    if isa(origCS, 'Simulink.ConfigSetRef')
        syncOverrideStatusOfSldvParamTable(origCS);
    end
    srcCS = configset.util.getSource(origCS);
end
