}
}
if (className != null) {
try {
XMLSerializable obj = (XMLSerializable) Class.forName(className).newInstance();
obj.streamFromXML(doc.getDocumentElement());
return obj;
} catch (Exception e) {
if (log.isWarnEnabled()) {
log.warn("ignored exception", e);
}