code: public boolean containsHeader(String name) {
          List<String> values = getHeaderMap().get(name);
          return (values != null && !values.isEmpty());
      }
docs: Returns a boolean indicating whether the named response header
  has already been set.
  
  @param name the header name
  @return {@code true} if the named response header
  has already been set; {@code false} otherwise