code: function(aChanges, oManagedObject) {
  			if (!(oManagedObject instanceof ManagedObject)) {
  				var sErrorMessage = "A valid sap.ui.base.ManagedObject instance is required as a parameter";
  				Utils.log.error(sErrorMessage);
  				return Promise.reject(sErrorMessage);
  			}
  			var mParameters = ControlPersonalizationAPI._determineParameters(oManagedObject);
  			var aVariantManagementReferences = Object.keys(mParameters.variantManagement).reduce(function (aReferences, sVariantForAssociationId) {
  				return aReferences.concat([mParameters.variantManagement[sVariantForAssociationId]]);
  			}, []);
  			return mParameters.flexController.saveSequenceOfDirtyChanges(aChanges)
  				.then(function(oResponse) {
  					mParameters.variantModel.checkDirtyStateForControlModels(aVariantManagementReferences);
  					return oResponse;
  				});
  		}
docs: Saves unsaved changes added to {@link sap.ui.fl.ChangePersistence}.
  
  @param {array} aChanges - Array of changes to be saved
  @param {sap.ui.base.ManagedObject} oManagedObject - A managed object instance which has an application component responsible, on which changes need to be saved
  
  @returns {Promise} Returns Promise which is resolved when the passed array of changes have been saved
  
  @method sap.ui.fl.ControlPersonalizationAPI.saveChanges
  @public