Portlet-based modules have access to this information automatically, but non-portlet (Servlet-based) APIs need a way to get it too.
https://github.com/Jasig/uPortal/pull/1162
merged.