}
}
private boolean servedFromCache(String url, HttpServletResponse response)
throws IOException {
PageCacheItem page = getSystemService().getPageCache().get(url,
getBusiness().getLanguage());
if (page != null) {
response.setContentType(page.getContentType());
response.setCharacterEncoding("UTF-8");
Writer out = response.getWriter();
out.write(page.getContent());
return true;
}
return false;
}