}
}
private static void writeConditionalResponse(HttpResponse response, MethodReturn methodReturn, HttpServletResponseHeaders outputHeaders)
{
ConditionalResponse conditionalResponse = methodReturn.getConditionalResponse();
response.setStatus(conditionalResponse.getStatus());
EntityTag etag = conditionalResponse.getEtag();
long dateModified = conditionalResponse.getLastModified();
CacheInfo cacheInfo = methodReturn.getCacheInfo();
if (cacheInfo != null)
{
writeCacheHeaders(response, cacheInfo, etag, dateModified, methodReturn.isEtagGenerationEnabled());