code: public List<T> unmarshall(JsonUnmarshallerContext context) throws Exception {
          if (context.isInsideResponseHeader()) {
              return unmarshallResponseHeaderToList(context);
          }
          return unmarshallJsonToList(context);
      }
docs: Unmarshalls the response headers or the json doc in the payload to the
  list