function has = allocationSetHasProfileAlready(profileName, setName)
            % Whether or not the specified profile is already imported into
            % the allocation set.
            appCatalog = systemcomposer.allocation.app.AllocationAppCatalog.getInstance;
            allocSet = appCatalog.getAllocationSet(setName);
            has = ~isempty(allocSet.p_ProfileNamespace.getProfile(profileName));
        end