code: FacesContext getFacesContextWithoutServletContextLookup() {
          FacesContext result = facesContextCurrentInstance.get();
          if (null == result) {
              if (null != facesContextThreadInitContextMap && !facesContextThreadInitContextMap.isEmpty()) {
                  result = facesContextThreadInitContextMap.get(Thread.currentThread());
              }
          }
          return result;
      }
docs: /*
  This method does what FacesContext.getCurrentInstance() did *before*
  the fix for Bug 20458755.