code: public static void injectContextFields(Object o,
                                             AbstractResourceInfo cri,
                                             Message m) {
  
          for (Field f : cri.getContextFields()) {
              if (f.getType() == Application.class && cri.isSingleton()) {
                  continue;
              }
              Object value = JAXRSUtils.createContextValue(m, f.getGenericType(), f.getType());
              if (value != null)
                  InjectionUtils.injectContextField(cri, f, o, value);
          }
      }
docs: Liberty Change for CXF End