addVariant(mPropertyBag) {
			setAdaptationIdInPropertyBag(mPropertyBag);
			return setReferenceAndPersistencyKeyInPropertyBagAndCallFunction(mPropertyBag, CompVariantState.addVariant);
		}
Adds a new variant and returns it.
Either the <code>mPropertyBag.changeSpecificData.layer</code> or the
<code>mPropertyBag.changeSpecificData.isUserDependent</code> should be provided for a proper layer determination.

@param {object} mPropertyBag - Object with parameters as properties
@param {sap.ui.comp.smartvariants.SmartVariantManagement|
			sap.ui.comp.smartfilterbar.SmartFilterBar|
			sap.ui.comp.smarttable.SmartTable|
			sap.ui.comp.smartchart.SmartChart} mPropertyBag.control - Variant management control for which the variant should be added
@param {object} mPropertyBag.changeSpecificData - Map of parameters, see below
@param {sap.ui.fl.Layer} [mPropertyBag.changeSpecificData.layer] - Layer to which the variant should be written
@param {boolean} [mPropertyBag.changeSpecificData.isUserDependent] - Flag if the variant is personalization only
@param {string} [mPropertyBag.changeSpecificData.id] - ID that should be used for the variant
@param {string} mPropertyBag.changeSpecificData.type - Type (<code>filterVariant</code>, <code>tableVariant</code>, etc.)
@param {object} mPropertyBag.changeSpecificData.texts - Map object with all referenced texts within the file; these texts will be connected to the translation process
@param {object} mPropertyBag.changeSpecificData.content - Content of the new change
@param {object} [mPropertyBag.changeSpecificData.favorite] - Indicates if the change is added as favorite
@param {object} [mPropertyBag.changeSpecificData.executeOnSelection] - Indicates if the <code>executeOnSelection</code> flag should be set
@param {string} [mPropertyBag.changeSpecificData.ODataService] - Name of the OData service --> can be null
@param {object} [mPropertyBag.changeSpecificData.contexts] - Map of contexts that restrict the visibility of the variant
@param {string[]} [mPropertyBag.changeSpecificData.contexts.role] - List of roles which are allowed to see the variant
@param {string} [mPropertyBag.command] - Name of the command creating the variant
@param {boolean} [mPropertyBag.support] - Information for support analysis
@returns {sap.ui.fl.apply._internal.flexObjects.Variant} Created variant object instance
@private
@ui5-restricted sap.ui.rta.command, sap.ui.comp.smartvariants.SmartVariantManagement