// Create a new attributes class.
ShardLinkConditionalAttributes attrs
= new ShardLinkConditionalAttributes();
// Initialise the attributes class.
ShardLinkContentRule rule;
String value = attributes.getValue("rule");
if (value.equals("any")) {
rule = StandardContentRules.getAnyRule();
} else if (value.equals("separator")) {
rule = StandardContentRules.getSeparatorRule();