public static boolean writeLinesToFile(List<String> lines, String filename) {
		if (lines == null || filename == null) {
			return false;
		}
		try {
			PrintWriter pw = new PrintWriter(new OutputStreamWriter(
					new FileOutputStream(filename), "UTF8"));
			for (int i = 0; i < lines.size(); ++i) {
				pw.println(lines.get(i));
			}
			pw.close();
			return true;
		} catch (Exception e) {
			e.printStackTrace();
		}
		return false;
	}