docs: protected ApplicationContext findWebApplicationContext() {
          String attrName = getContextAttribute();
          final PortletApplicationContext portletApplicationContext;
          if (attrName != null) {
              portletApplicationContext = PortletApplicationContextUtils2.getPortletApplicationContext(getPortletContext(), attrName);
          }
          else {
              portletApplicationContext = PortletApplicationContextUtils2.getPortletApplicationContext(getPortletContext());
          }
  
          if (portletApplicationContext != null) {
              return portletApplicationContext;
          }
  
          return PortletApplicationContextUtils.getWebApplicationContext(getPortletContext());
      }