docs: public void writeToFile(final String filePath, final String toWrite,
  			final boolean overwrite, final String fileEncoding)
  			throws IOException {
  		File file = new File(filePath);
  		if (!file.exists()) {
  			boolean created = file.createNewFile();
  			LOG.info("File successfully created: " + created);
  		}
  
  		BufferedWriter writer = null;
  		try {
  			writer = new BufferedWriter(new OutputStreamWriter(
  					new FileOutputStream(file, overwrite), fileEncoding));
  			writer.write(toWrite);
  
  			writer.flush();
  		} finally {
  			if (writer != null) {
  				writer.close();
  			}
  		}
  	}