try { org.w3c.dom.Document w3cDocument = serializeToW3CDocument(); catch (Exception e) { e.printStackTrace(); }