code: public static Class<?> updateParamClassToTypeIfNeeded(Class<?> paramCls, Type type) {
          if (paramCls != type && type instanceof Class) {
              Class<?> clsType = (Class<?>) type;
              if (paramCls.isAssignableFrom(clsType)
                  || clsType != Object.class && !clsType.isInterface() && clsType.isAssignableFrom(paramCls)) {
                  paramCls = clsType;
              }
          }
          return paramCls;
      }
docs: Liberty Change for CXF End