code: protected void writeSpecToFile(Path specPath, Spec spec) throws IOException {
      byte[] serializedSpec = this.specSerDe.serialize(spec);
      try (FSDataOutputStream os = fs.create(specPath, true)) {
        os.write(serializedSpec);
      }
    }
docs: *
  Serialize and write Spec to a file.
  @param specPath Spec file name.
  @param spec Spec object to write.
  @throws IOException