function copyVariantsAndChanges(aFlexObjects, sContextBasedAdaptationId) {
		var aVariants = [];
		var aChanges = [];
		var mFileNames = new Map();
		aFlexObjects.forEach(function(oFlexObject) {
			if (oFlexObject.isA("sap.ui.fl.apply._internal.flexObjects.Variant")) {
				aVariants.push(oFlexObject);
			} else {
				aChanges.push(oFlexObject);
			}
		});
		var aCopiedVariants = copyVariants(aVariants, mFileNames, sContextBasedAdaptationId);
		var aCopiedChanges = copyChanges(aChanges, mFileNames, sContextBasedAdaptationId);
		return aCopiedVariants.concat(aCopiedChanges).map(function(oFlexObject) {
			return oFlexObject.convertToFileContent();
		});
	}
Copies existing changes.
@param {sap.ui.fl.apply._internal.flexObjects.FlexObject[]} aFlexObjects - Array of flex objects changes and variants
@param {string} sContextBasedAdaptationId - ID of the adaptation to be created
@returns {object[]} Returns a list of copied changes and variant as JSON object