code: @Override
      public boolean setCookie(HttpCookie cookie, HttpHeaderKeys header) {
          if (null == cookie || null == header) {
              return false;
          }
  
          // only cookie versions 0 and 1 are supported
          if (1 < cookie.getVersion()) {
              throw new IllegalArgumentException("Cookie version is invalid: " + cookie.getVersion());
          }
  
          if (header.equals(HttpHeaderKeys.HDR_SET_COOKIE) || header.equals(HttpHeaderKeys.HDR_SET_COOKIE2)) {
              return addCookie(cookie, header);
          }
          return false;
      }
docs: /*
  @see
  com.ibm.wsspi.http.channel.cookies.CookieHandler#setCookie(com.ibm.websphere
  .http.HttpCookie, com.ibm.wsspi.http.channel.values.HttpHeaderKeys)