static private JAXBContext getJAXBContext ( Class < ? > objclass ) throws JAXBException { JAXBContext jaxbContext ; if ( jaxbContentCache . containsKey ( objclass . getName ( ) ) ) { jaxbContext = jaxbContentCache . get ( objclass . getName ( ) ) ; } else { jaxbContext = JAXBContext . newInstance ( objclass ) ; jaxbContentCache . put ( objclass . getName ( ) , jaxbContext ) ; } return jaxbContext ; }
Serialise the object to an XML string