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());
}

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 ( ) ) ; }
use the cachexmlgenerator to create xml from the entity associated with the current cache .
