static String writeConfiguration(Configuration cfg,String pathFromIgniteHome) throws IOException {
  if (!pathFromIgniteHome.startsWith("/"))   pathFromIgniteHome="/" + pathFromIgniteHome;
  final String path=U.getIgniteHome() + pathFromIgniteHome;
  delete(path);
  File file=new File(path);
  try (FileOutputStream fos=new FileOutputStream(file)){
    cfg.writeXml(fos);
  }
   assertTrue(file.exists());
  return path;
}

static String writeConfiguration ( Configuration cfg , String pathFromIgniteHome ) throws IOException { if ( ! pathFromIgniteHome . startsWith ( "/" ) ) pathFromIgniteHome = "/" + pathFromIgniteHome ; final String path = U . getIgniteHome ( ) + pathFromIgniteHome ; delete ( path ) ; File file = new File ( path ) ; try ( FileOutputStream fos = new FileOutputStream ( file ) ) { cfg . writeXml ( fos ) ; } assertTrue ( file . exists ( ) ) ; return path ; }
writes down the configuration to local disk and returns its path .
