LPS-47593 re-adding the metadata element will enforce the xsd restriction that is must come after any dynamic-elements that have the same parent
LPS-47593 SF