protected File createManifestFile(String baseDir,Object manifest) throws IOException {
  Path resultFilePath=Paths.get(baseDir,String.format("manifest-%d.json",getNextUniqueIndex()));
  File resultFile=new File(resultFilePath.toString());
  ObjectMapper mapper=new ObjectMapper();
  mapper.writeValue(resultFile,manifest);
  return resultFile;
}

protected File createManifestFile ( String baseDir , Object manifest ) throws IOException { Path resultFilePath = Paths . get ( baseDir , String . format ( "manifest-%d.json" , getNextUniqueIndex ( ) ) ) ; File resultFile = new File ( resultFilePath . toString ( ) ) ; ObjectMapper mapper = new ObjectMapper ( ) ; mapper . writeValue ( resultFile , manifest ) ; return resultFile ; }
serializes provided manifest instance as json output , written to a file in the specified directory .
