@ SuppressWarnings ( { "static-method" } ) protected String generateXml ( Map < String , Object > map ) throws JsonProcessingException { final XmlMapper mapper = new XmlMapper ( ) ; return mapper . writerWithDefaultPrettyPrinter ( ) . withRootName ( XML_ROOT_NAME ) . writeValueAsString ( map ) ; }
Generate the Xml representation of the given map .