public final static void saveFileContents(String filePath, String data) {
		File file = new File(filePath);
		// If the file exists, delete it
		if (file.exists())
			file.delete();
		FileWriter fileWriter = null;
		BufferedWriter bufferedWriter = null;
		try {
			file.createNewFile();
			fileWriter = new FileWriter(file);
			bufferedWriter = new BufferedWriter(fileWriter);
			bufferedWriter.write(data);
		} catch (IOException e) {
			logger.error(e, "Error saving a file :: ", filePath, " with data :: ", data);
		} finally {
			// Try to close everything
			if (bufferedWriter != null)
				try {
					bufferedWriter.close();
				} catch (IOException e) {
					logger.error(e, "Failed closing fileWriter/BufferedWriter");
				}
		}
	}