ShardLink shardLink = (ShardLink) document.getAnnotation(element);
DissectableArea area = shardLink.getDissectableArea();
Shard shard = selectedShards.getShard(area);
// Get the details from the shard.
ShardLinkDetails details = shardLink.getDetails(shard);
// If the details are null then the shard does not require that link
// so we must not serialize it.
if (details != null) {
contentHandler.shardLink(element, details);