SpanAttributes spanAttrs = new SpanAttributes ();
spanAttrs.copy(attributes);
// Write out a SPAN tag with the fallback text in it, using the
// styles of the original PAPI tag.
writeOpenSpan (spanAttrs);
OutputBufferWriter writer = getContentWriter();
try {
writer.write (altText);
} catch (IOException e) {
logger.error("unexpected-ioexception", e);
}
writeCloseSpan (spanAttrs);
}