private static void _writeToFile(final File file, BinaryContent content) throws IOException {
    try (OutputStream stream = new FileOutputStream(file)) {
      stream.write(content.getBuffer(), content.getOffset(), content.getLength());
    }
  }
private static void _writeToFile(final File file, BinaryContent content)