code: public static void writeGoldFile(Path outputPath, JsonGouldiBean goldEntry) {
          try {
              try {
                  Files.createFile(outputPath);
              } catch (FileAlreadyExistsException e) {
                  LOG.warn("File already exists!");
              }
              try (Writer out = new BufferedWriter(new OutputStreamWriter(
                      new FileOutputStream(outputPath.toFile()), "UTF-8"))) {
                  out.write(goldEntry.toString());
              }
          } catch (IOException e) {
              LOG.error(e);
              throw new RuntimeException(e);
          }
      }
docs: Writes a gouldi entry to the given path. Note that if the file already exists, it will be
  overwritten and logging a warning message.
  
  @param outputPath where the gouldi entry will be stored
  @param goldEntry  the gouldi entry as java object
  @throws IOException