}
public void handle(HypermediaResource resource) {
// TODO implement link headers
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 {