if (isRender()) {
try {
String link = this.href;
if (externalise) {
final LinkBuilderImpl linkBuilder = new LinkBuilderImpl();
linkBuilder.setPath(link);
linkBuilder.setSelectorString(selector);
linkBuilder.setExtension(extension);
final LinkExternalizer linkExternalizer = new LinkExternalizerImpl(null);
link = linkExternalizer.externalizeLink(linkBuilder.toLink()).toString();
}
JspWriter out = getJspWriter();
out.append("<a");
apppendAttributeIfNotBlank(out, "href", link);