docs: public static PortletApplicationContext getCurrentPortletApplicationContext() {
          ClassLoader ccl = Thread.currentThread().getContextClassLoader();
          if (ccl != null) {
              PortletApplicationContext ccpt = currentContextPerThread.get(ccl);
              if (ccpt != null) {
                  return ccpt;
              }
          }
          return currentContext;
      }