private void doContent(Resource resource, MimeType mimeType, List<? super Capability> capabilities) throws Exception {
Builder builder = new Builder().setNamespace(Namespaces.NS_CONTENT);
String sha = calculateSHA(resource);
builder.addAttribute(Namespaces.NS_CONTENT, sha);
String location = calculateLocation(resource);
builder.addAttribute(Namespaces.ATTR_CONTENT_URL, location);
long size = resource.getSize();