code: public void toFile(Path path, OpenOption... options) throws IOException {
          Files.write(path, pBytes, options);
  
      }
docs: Write Lifecycle chaincode package bytes to file.
  
  @param path    of the file to write to.
  @param options Options on creating file.
  @throws IOException