How do I Access Template properties in a new Servlet
All my templates have a couple properties that are not getting imported into pages. These properties need to be read to populate the SiteMap, they are Priority and Update Frequency.
The current com.adobe.acs.commons.wcm.impl.SiteMapServlet.java is looking for those properties in the page, not the template, and since they're not there, doesn't report them. So I have 2 problems:
1) In the CreatePage, I need to copy the values from the template into the page. Reasonably straightforward, though I can't seem to hide the values from the user. Currently, there is no requirement to allow anyone to change the values at the page level.
2) For the pages generated prior to the 1) fix (call those legacy pages), I need to access the template properties. I created a new SiteMapServlet called SiteMapServletMine which is a copy of SiteMapServlet (since it is final, I can't extend it). I can access the Template from the Page, but cannot see how to access the properties in that template.
Note that a better* solution may be to write script to populate all the legacy pages from their templates, but that still begs the question, how do I access the properties?
* Better because then future changes to the template will not affect legacy pages.
I am using AEM 6.2