question: private final String loadXmlDefinition ( ) { final Cache cache = CacheFactory . getAnyInstance ( ) ; final StringWriter stringWriter = new StringWriter ( ) ; final PrintWriter printWriter = new PrintWriter ( stringWriter ) ; CacheXmlGenerator . generate ( cache , printWriter , true , false , false ) ; printWriter . close ( ) ; return loadXmlDefinition ( stringWriter . toString ( ) ) ; }
target:  Use the CacheXmlGenerator to create XML from the entity associated with the current cache.