ShardLinkAttributes attributes
= (ShardLinkAttributes) document.getAnnotation(element);
// Create the ShardLink and initialise it.
ShardLinkActionImpl action
= (ShardLinkActionImpl) attributes.getAction();
ShardLink shardLink = new ShardLink();
shardLink.setAction(action);
// Create a linkage between the shard link and the area to which it