flushBuffer();
if (pw != null)
pw.close();
setContentLength(baos.size());
StatusLine sl = new StatusLine(statusCode, statusReason);
DataPoster dp = new ByteArrayDataPoster(baos.toByteArray());
ServerResponse sr = new ServerResponse(sl, headers, dp);
return sr;
}