String contentType = res.getContentTypeImpl();
String charEncoding = res.getCharacterEncodingImpl();
int contentLength = -1;
AbstractCacheEntry newCacheEntry
= cacheInvocation.startCaching(req, res,
keys, values,
contentType,
charEncoding,
contentLength);
if (newCacheEntry == null) {
}
else if (isByte) {
_newCacheEntry = newCacheEntry;
setByteCacheStream(newCacheEntry.openOutputStream());
}
else {
_newCacheEntry = newCacheEntry;
setCharCacheStream(newCacheEntry.openWriter());
}
}