if (!matcher.matches()) {
authorNode.addChild("b", specifiedAuthor);
} else {
try {
final WoTIdentity author = (WoTIdentity)identityManager.getIdentity(matcher.group(1));
authorNode.addChild("a", new String[] { "class", "href", "title" },
new String[] { "identity-link", Freetalk.WOT_PLUGIN_URI + "/ShowIdentity?id=" + author.getID(), "Web of Trust Page" })
.addChild("abbr", new String[] { "title" }, new String[] { author.getID() })
.addChild("span", "class", "name", author.getShortestUniqueName());
} catch (NoSuchIdentityException e) {
authorNode.addChild("b", specifiedAuthor + " (Unknown identity)"); // TODO: l10n
}
}
}