docs: @Override
      protected ApplicationContext createPortletApplicationContext(ApplicationContext parent) {
          final PortletContext portletContext = this.getPortletContext();
          final PortletApplicationContext parentPortletApplicationContext = PortletApplicationContextUtils2.getPortletApplicationContext(portletContext);
          if (parentPortletApplicationContext != null) {
              //Found the parent PortletApplicationContext, use it as the parent
              return super.createPortletApplicationContext(parentPortletApplicationContext);
          }
  
          //No parent PortletApplicationContext was found, use the root web application context as the parent
          return super.createPortletApplicationContext(parent);
      }