code: public static void writeToFile(Structure structure, Path path) throws IOException {
  		// Set up this writer
  		AdapterToStructureData writerToEncoder = new AdapterToStructureData();
  		// Get the writer - this is what people implement
  		new MmtfStructureWriter(structure, writerToEncoder);
  		// Now write this data to file
  		WriterUtils.writeDataToFile(writerToEncoder, path);
  	}
docs: Write a Structure object to a file.
  @param structure the Structure to write
  @param path the file to write
  @throws IOException