public ArrayList<DBObject> filterComment(Document dom) {
		ArrayList<DBObject> list = new ArrayList<DBObject>();
		Elements commeles = dom.getElementsByTag("long_desc");
		for (Element commele : commeles) {
			DBObject commobj = new BasicDBObject();
			String[] tags = { "commentid", "who", "bug_when", "thetext" };
			for (int i = 0; i < tags.length; i++) {
				String text = commele.getElementsByTag(tags[i]).text();
				commobj.put(tags[i], text);
				if (tags[i].equals("thetext")) {
					List<String> refidList = new ArrayList<String>();
					if (text.contains("(In reply to comment #")) {
						Pattern p = Pattern
								.compile("(In reply to comment #[0-9]*)");
						Matcher m = p.matcher(text);
						while (m.find()) {
							int commentPos = Integer.parseInt(m.group()
									.toLowerCase().replaceAll("[a-z]", "")
									.replace("#", "").trim());
							String refCommid = commeles.get(commentPos)
									.getElementsByTag("commentid").get(0)
									.text();
							if (!refidList.contains(refCommid)) {
								refidList.add(refCommid);
							}
						}
					}
					commobj.put("ref_commentid", refidList);
				}
			}
			list.add(commobj);
		}
		return list;
	}