{
webResponse.setContentLength(contentLength);
}
// add custom headers and values
final HttpHeaderCollection headers = data.getHeaders();
for (String name : headers.getHeaderNames())
{
checkHeaderAccess(name);
for (String value : headers.getHeaderValues(name))
{
webResponse.addHeader(name, value);
}
}