public Document serialiseToDocument ( final Object obj ) { final Document document = DOMUtils . createDocumentBuilder ( ) . newDocument ( ) ; serialise ( obj , document ) ; return document ; }
Helper method to serialise an Object to an org . w3c . dom . Document