LPS-51937 We shouldn't need to set the WAR flag to true, neither use the servletContext
LPS-51937 Previous change makes the portlet much simpler