LPS-50745 Avoid having to cast to PortletRequestImpl in order to call defineObjects method