function prepareChangeDefinitions(sStorageResponseKey, vStorageResponsePart) {
		var fnPreparation = {
			comp() {
				return Object.values(vStorageResponsePart).reduce(function(aChangeDefinitions, oChangeDefinition) {
					return aChangeDefinitions.concat(oChangeDefinition);
				}, []);
			},
			variants() {
				return vStorageResponsePart.map(function(oVariant) {
					var bParentVariantExists = (
						oVariant.variantReference === oVariant.variantManagementReference
						|| vStorageResponsePart.some(function(oOtherVariant) {
							return (
								oOtherVariant.variantManagementReference === oVariant.variantManagementReference
								&& oOtherVariant.fileName === oVariant.variantReference
							);
						})
					);
					// If the parent variant no longer exists, change the reference to the standard variant
					if (!bParentVariantExists) {
						return { ...oVariant, variantReference: oVariant.variantManagementReference };
					}
					return oVariant;
				});
			}
		}[sStorageResponseKey];
		if (fnPreparation) {
			return fnPreparation();
		}
		return Array.isArray(vStorageResponsePart) ? vStorageResponsePart : [];
	}
Flex state class to persist maps and raw state (cache) for a given component reference.
The persistence happens inside an object mapped to the component reference, with the following properties:

	{
		preparedMaps: {
			compVariantsMap: {},
		},
		storageResponse: {
			changes: {
				annotationChanges: [...],
				appDescriptorChanges: [...],
				changes: [...],
				comp: {
					variants: [...],
					changes: [...],
					defaultVariants: [...],
					standardVariants: [...]
				}
				variants: [...],
				variantChanges: [...],
				variantDependentControlChanges: [...],
				variantManagementChanges: [...],
				ui2personalization: {...}
			},
			loadModules: <boolean>
		},
		unfilteredStorageResponse: {...}, // same as above but without layer filtering
		runtimePersistence: {
			flexObjects: [...],
			runtimeOnlyData: {
				liveDependencyMap: {...}
			}
		},
		maxLayer: <string>,
		emptyState: <boolean>,
		partialFlexState: <boolean>,
		componentId: "<componentId>",
		componentData: {...}
	}

@namespace sap.ui.fl.apply._internal.flexState.FlexState
@since 1.73
@version ${version}
@private
@ui5-restricted sap.ui.fl.apply._internal