function has = dictionaryHasProfileAlready(profileName, ddName)
            % Whether or not the specified profile is already imported into
            % the dictionary.
            ddConn = Simulink.data.dictionary.open(ddName);
            mf0Model = Simulink.SystemArchitecture.internal.DictionaryRegistry.FetchInterfaceSemanticModel(ddConn.filepath());
            zcModel = systemcomposer.architecture.model.SystemComposerModel.getSystemComposerModel(mf0Model);
            piCatalog = zcModel.getPortInterfaceCatalog;
            has = ~isempty(piCatalog.getProfile(profileName));
        end