docs: private Application getMyfacesApplicationInstance()
      {
          FacesContext facesContext = FacesContext.getCurrentInstance();
          if (facesContext != null)
          {
              ExternalContext externalContext = facesContext.getExternalContext();
              if (externalContext != null)
              {
                  return (Application) externalContext.getApplicationMap().get(
                                  "org.apache.myfaces.application.ApplicationImpl");
              }
          }
          return null;
      }