saveAs(mPropertyBag) {
			if (!mPropertyBag.layer) {
				return Promise.reject("Layer must be provided");
			}
			if (!mPropertyBag.id) {
				return Promise.reject("App variant ID must be provided");
			}
			mPropertyBag.reference = ManifestUtils.getFlexReferenceForSelector(mPropertyBag.selector);
			return FeaturesAPI.isVersioningEnabled(mPropertyBag.layer)
			.then(function(bVersioningEnabled) {
				if (bVersioningEnabled) {
					mPropertyBag.parentVersion = Versions.getVersionsModel(mPropertyBag).getProperty("/displayedVersion");
				}
				return SaveAs.saveAs(mPropertyBag);
			});
		}
Saves the app variant to backend.

@param {object} mPropertyBag - Object with parameters as properties
@param {sap.ui.fl.Selector} mPropertyBag.selector - Selector
@param {string} mPropertyBag.id - App variant ID
@param {sap.ui.fl.Layer} mPropertyBag.layer - Current working layer
@returns {Promise} Promise that resolves with the app variant save response

@private
@ui5-restricted