etag = etagObject.toString();
}
cache.add(request.getUri().getRequestUri().toString(), context.getMediaType(), cc, context.getHeaders(), entity, etag);
// check to see if ETags are the same. If they are, we don't need to send a response back.
Response.ResponseBuilder validatedResponse = validation.evaluatePreconditions(new EntityTag(etag));
if (validatedResponse != null)
{
throw new NoLogWebApplicationException(validatedResponse.status(Response.Status.NOT_MODIFIED).cacheControl(cc).header(HttpHeaders.ETAG, etag).build());
}