If you want to workaround it:
- inject shibboleth.HttpServletRequestSupplier into your script as a custom
- get the PRC via custom.get().getAttribute("opensamlProfileRequestContext")
Should work. Used to use that trick in the days before all the profile getters took a parameter to access the PRC.
-- Scott