ShardLinkAttributes attrs
= new ShardLinkAttributes();
// Initialise the attributes class.
String value = attributes.getValue("action");
ShardLinkAction action;
if (value.equals("next")) {
action = ShardLinkAction.NEXT;
} else if (value.equals("previous")) {
action = ShardLinkAction.PREVIOUS;
} else {