question: private < T > String elementToString ( JAXBElement < T > element ) throws Exception { StringWriter writer = new StringWriter ( ) ; marshaller . marshal ( element , writer ) ; return writer . toString ( ) ; }
target:  Serializes the given XML element to a string.