<core:FragmentDefinition
	xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
	xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:uxap="sap.uxap"
	xmlns:layout="sap.ui.layout" xmlns:build="sap.build"
	xmlns:block="sap.suite.ui.generic.template.ObjectPage.view.fragments">
	<template:with path="parameter>/" helper="sap.suite.ui.generic.template.js.StableIdHelper.preparePathForStableId" var="facetId">
		<template:if test="{= ${facetId>}.buildFacetId(${firstLevelFacet>})}"/>
		<template:with path="manifestViewExtensions>" helper="sap.suite.ui.generic.template.js.AnnotationHelper.getExtensions" var="manifestKeys">
			<template:repeat list="{path: 'manifestKeys>'}" var="manifestKey">
				<template:if test="{parts: [{path:'manifestKey>'}, {path:'entitySet>name'}, {path: 'firstLevelFacet>'}], formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.isCurrentManifestEntryForBeforeFacet'}">
					<template:with path="parameter>/" helper="sap.suite.ui.generic.template.js.StableIdHelper.preparePathForStableId" var="ExtensionsSectionId">
						<template:with path="parameter>/" helper="sap.suite.ui.generic.template.js.StableIdHelper.preparePathForStableId" var="ExtensionsSubSectionId">
							<template:if test="{path: 'manifestKey>', formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.isManifestKeyLegacy'}">
								<template:then>
									<template:if test="{= ${ExtensionsSectionId>}.buildStableId({type:'ObjectPageSection', subType:'BeforeFacetExtensionSection', sFacet: ${facetId>id}, sEntitySet: ${entitySet>name}})}" />
									<template:if test="{= ${ExtensionsSubSectionId>}.buildStableId({type: 'ObjectPageSection', subType: 'BeforeFacetExtensionSubSection', sFacet: ${facetId>id}, sEntitySet: ${entitySet>name}})}"/>
								</template:then>
								<template:else>
									<template:if test="{= ${ExtensionsSectionId>}.buildStableId({type:'ObjectPageSection', subType:'BeforeFacetExtensionSectionWithKey', sFacet: ${facetId>id}, sEntitySet: ${entitySet>name}, sFacetExtensionKey: ${manifestViewExtensions>}[${manifestKey>}]['sap.ui.generic.app']['key']})}" />
									<template:if test="{= ${ExtensionsSubSectionId>}.buildStableId({type: 'ObjectPageSection', subType: 'BeforeFacetExtensionSubSectionWithKey', sFacet: ${facetId>id}, sEntitySet: ${entitySet>name}, sFacetExtensionKey: ${manifestViewExtensions>}[${manifestKey>}]['sap.ui.generic.app']['key']})}"/>
								</template:else>
							</template:if>
							<core:Fragment fragmentName="sap.suite.ui.generic.template.ObjectPage.view.fragments.ExtensionFacetLayout" type="XML"/>
						</template:with>
					</template:with>
				</template:if>
			</template:repeat>
		</template:with>
	</template:with>
</core:FragmentDefinition>