attachVariantApplied(mPropertyBag) {
			var oControl = mPropertyBag.selector.id && Element.getElementById(mPropertyBag.selector.id) || mPropertyBag.selector;
			var oAppComponent = Utils.getAppComponentForControl(oControl);

			waitForVariantModel(oAppComponent).then(function(oVariantModel) {
				oVariantModel.attachVariantApplied({
					vmControlId: mPropertyBag.vmControlId,
					control: oControl,
					callback: mPropertyBag.callback,
					callAfterInitialVariant: mPropertyBag.callAfterInitialVariant
				});
			});
		}
Saves a function that will be called after a variant has been applied with the new variant as parameter.
Even if the same variant is selected again the callback is called.
The function also performs a sanity check after the control has been rendered.
If the passed variant control ID does not match the responsible variant management control, the callback will not be saved.
Optionally this function is also called after the initial variant is applied without a sanity check.

@param {object} mPropertyBag - Object with parameters as properties
@param {sap.ui.fl.Selector} mPropertyBag.selector - Selector of the control
@param {string} mPropertyBag.vmControlId - ID of the variant management control
@param {function} mPropertyBag.callback - Callback that will be called after a variant has been applied
@param {boolean} [mPropertyBag.callAfterInitialVariant] - The callback will also be called after the initial variant is applied

@public