function hConfigDb = convertToOldFormat(this)
%

%   Copyright 2014-2020 The MathWorks, Inc.

hConfigDb = extmgr.ConfigDb;
for hConfig = this.Children
    props = hConfig.PropertySet;
    if ~isempty( props ) && isa( props, 'extmgr.PropertySet' )
        props = props.convertToOldFormat;
    end
    hConfigDb.add( hConfig.Type, hConfig.Name, hConfig.Enable, props );
end
end
