if (cache != null && res != null) {
_cacheInvocation = null;
WebApp webApp = res.getRequest().getWebApp();
if (webApp != null && webApp.isActive()) {
cache.finishCaching(res);
}
}
} catch (Exception e) {
log.log(Level.WARNING, e.toString(), e);
} finally {