type = DissectionElementTypes.getShardLinkGroupType();
} else if (localName.equals(SHARD_LINK_CONDITIONAL)) {
// 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();
} else {
throw new IllegalArgumentException("Unknown rule: "
+ value);
}
attrs.setContentRule(rule);
annotation = attrs;
type = DissectionElementTypes.getShardLinkConditionalType();
} else {