fnGetAggregationSync = (oParent, sAggregationName) => {
			const fnFindAggregation = (oControl, sAggregationName) => {
				if (oControl) {
					if (oControl.getMetadata) {
						const oMetadata = oControl.getMetadata();
						const oAggregations = oMetadata.getAllAggregations();
						if (oAggregations) {
							return oAggregations[sAggregationName];
						}
					}
				}
				return undefined;
			};

			const oAggregation = fnFindAggregation(oParent, sAggregationName);
			if (oAggregation) {
				return oParent[oAggregation._sGetter]();
			}
			return undefined;
		}
Returns a copy of the xConfig object

@param {sap.ui.core.Element} oControl The according element which should be checked
@param {object} [oModificationPayload] An object providing a modification handler specific payload
@param {object} [oModificationPayload.propertyBag] Optional propertybag for different modification handler derivations

@returns {Promise<object>|object} A promise resolving to the adapted xConfig object or the object directly