}
private void setCookieHeader() {
if (request == null || request.getSession() == null) return;
HttpSession session = request.getSession(false);
if (session == null) return;
StringBuffer cookie = new StringBuffer();
cookie.append(HttpRequestImpl.EJBSESSIONID);
cookie.append('=');
cookie.append(session.getId());
cookie.append("; Path=/");
headers.put(HttpRequest.HEADER_SET_COOKIE, cookie.toString());
}