public void addCookie(JDiscCookieWrapper cookie) {
        if(cookie != null) {
            List<Cookie> cookies = new ArrayList<>();
            //Get current set of cookies first
            List<Cookie> c = getCookies();
            if((c != null) && (! c.isEmpty())) {
                cookies.addAll(c);
            }
            cookies.add(cookie.getCookie());
            setCookies(cookies);
        }
    }
Adds a header with the given name and value
@see com.yahoo.jdisc.HeaderFields#add
container-core/src/main/java/com/yahoo/jdisc/http/filter/DiscFilterResponse.java