I want to access Structure Group metadata in my DXA 2.0 (Java) Pages. Following the documentation I have added the InheritMetadataPageModelBuilder model builder to the pipeline in my Page Rendering TBB. If I preview the page, or query the Model Service directly I see that Metadata from the Structure Group is indeed present in the published JSON in a Metadata element, along with the Page Metadata. However, I don't see how I can access this data in the (Java) Page Model.
In the map returned by DefaultPageModel.getMeta()
I see only the Page Metadata and not that from the Structure Group. I don't see any other properties or methods which might help. How can I access the additional metadata added to the model by the InheritMetadataPageModelBuilder?
@SemanticPropety('field name')