if(Cacheable.class.isAssignableFrom(resource.getClass())) {
Cacheable cache = (Cacheable) resource;
response.addHeader("Cache-control","max-age=" + cache.getMaximumAge());
}
if(RestfulEntity.class.isInstance(resource)) {
RestfulEntity entity = (RestfulEntity) resource;
restfulHeadersFor(entity.getEtag(), entity.getLastModified());
} else {
restfulHeadersFor(defaults.getEtagFor(resource), defaults.getLastModifiedFor(resource));
}
// TagCoisa t = tagInfoFor(resource);