async function revertChangesAndUpdateVariantModel(oAppComponent, sReference, aChanges) {
		if (aChanges.length !== 0) {
			await Reverter.revertMultipleChanges(
				// Always revert changes in reverse order
				[...aChanges].reverse(),
				{
					appComponent: oAppComponent,
					modifier: JsControlTreeModifier,
					reference: sReference
				}
			);
		}
	}
Reset flex objects on the server.
If the reset is performed for an entire component, a browser reload is required.
If the reset is performed for a control or change type, this function also triggers a reversion of deleted UI changes.
The to be deleted flexObjects can be filtered by selectorIds, changeTypes or generator.

@param {object} mPropertyBag - Object with parameters as properties
@param {string} mPropertyBag.layer - Layer for which changes shall be deleted
@param {sap.ui.core.UIComponent} mPropertyBag.appComponent - Component instance
@param {string} [mPropertyBag.generator] - Generator of changes
@param {string[]} [mPropertyBag.selectorIds] - Selector IDs in local format
@param {string[]} [mPropertyBag.changeTypes] - Types of changes

@returns {Promise<undefined>} Resolves after the deletion took place