class ContainerRequest implements GenericContainerRequest {

    @Override
    public Map<String, Cookie> getCookies() {
        if (this.cookies == null) {
            Map<String, Cookie> cookies = new HashMap<>();

            for (String cookieHeader : getCookieHeaders()) {
                List<Cookie> parsedCookies = HeaderHelper.parseCookies(cookieHeader);
                for (Cookie cookie : parsedCookies) {
                    cookies.put(cookie.getName(), cookie);
                }
            }

            this.cookies = unmodifiableMap(cookies);
        }

        return cookies;
    }

    public  ContainerRequest(String method, URI requestUri, URI baseUri, InputStream entityStream,
                            MultivaluedMap<String, String> httpHeaders, SecurityContext securityContext);

}