function convertMetadataToDelegateFormat(mODataEntity, oMetaModel, oElement, sAggregationName) {
		const aFieldControlProperties = mODataEntity.property
		.map((mProperty) => mProperty["sap:field-control"])
		.filter(Boolean);

		const fnFilterFieldControlProperties = (mProperty) => !aFieldControlProperties.includes(mProperty.name);

		const aProperties = mODataEntity.property.map((mProperty) => {
			const mProp = enrichProperty(mProperty, mODataEntity, oElement, sAggregationName);
			if (isComplexType(mProperty)) {
				const mComplexType = oMetaModel.getODataComplexType(mProperty.type);
				if (mComplexType) {
					// deep properties, could get multiple-level deep
					mProp.properties = mComplexType.property
					.map((mComplexProperty) => {
						const mInnerProp = enrichProperty(mComplexProperty, mODataEntity, oElement, sAggregationName);
						mInnerProp.bindingPath = `${mProperty.name}/${mComplexProperty.name}`;
						mInnerProp.referencedComplexPropertyName = mProp.label || mProp.name;
						return mInnerProp;
					})
					.filter(fnFilterFieldControlProperties);
				}
			}
			return mProp;
		});

		if (mODataEntity.navigationProperty) {
			const aNavigationProperties = mODataEntity.navigationProperty.map((mNavProp) => {
				const sFullyQualifiedEntityName = oMetaModel.getODataAssociationEnd(mODataEntity, mNavProp.name)?.type;
				return {
					name: mNavProp.name,
					// no labels or tooltips for navigation properties
					entityType: sFullyQualifiedEntityName,
					bindingPath: mNavProp.name,
					unsupported: true // no support for navigation properties yet
					// can have properties (like complex types in future)
				};
			});
			aProperties.push(...aNavigationProperties);
		}

		return aProperties.filter(fnFilterFieldControlProperties);
	}
Converts metadata to delegate format.

@param {object} mODataEntity - The OData entity metadata object
@param {object} oMetaModel - The meta model object
@param {object} oElement - The element object
@param {string} sAggregationName - The name of the aggregation
@return {array} The properties in delegate format