Element extEl = DOMUtil.getFirstChildElementByTagName(root,
"extensions");
if (extEl != null) {
List childList = DOMUtil.getChildElements(extEl);
if (childList.size() > 0) {
ExtensionXMLElementHandler handler;
String elemName, elemNS;
for (Iterator it = childList.iterator(); it.hasNext();) {
Element ch = (Element) it.next();
elemName = ch.getLocalName();
handler = extensionXMLHandlers
.getExtensionXMLHandler(elemName);
if (handler != null) {
try {
handler.handleElement(ctx, ch, annot);
} catch (Throwable t) {
// could not handle extension
log.warn("Some FO3D Extension XML content will be"
+ " ignored. Could not handle XML", t);
}