String xrdText;
try {
Document doc = this.builder.newDocument();
Node element = xrd.toDOM(doc);
doc.appendChild(element);
xrdText = DOMUtils.toString((Element) element, true, true);
} catch (Exception ex) {
throw new HibernateException("Cannot disassemble xrd.", ex);