public DBObject filterBugInfo(Document dom) {
		DBObject bug = new BasicDBObject();

		String[] tags = { "bug_id", "creation_ts", "short_desc", "delta_ts",
				"reporter_accessible", "cclist_accessible",
				"classification_id", "classification", "product", "component",
				"version", "rep_platform", "op_sys", "bug_status",
				"resolution", "bug_file_loc", "status_whiteboard", "keywords",
				"priority", "bug_severity", "target_milestone",
				"everconfirmed", "reporter", "assigned_to", "votes" };

		String[] listTags = { "cc", "commentid", "attachid" };
		for (int i = 0; i < tags.length; i++) {
			Elements eles = dom.getElementsByTag(tags[i]);
			for (Element ele : eles) {
				String text = ele.text();
				// System.out.println(tags[i] + ": " + text);
				bug.put(tags[i], text);
				break;
			}
		}
		for (int i = 0; i < listTags.length; i++) {
			List<String> list = new ArrayList<String>();
			Elements eles = dom.getElementsByTag(listTags[i]);
			for (Element ele : eles) {
				String text = ele.text();
				if (!list.contains(text)) {
					// System.out.println(listTags[i] + ": " + text);
					list.add(text);
				}
			}
			bug.put(listTags[i], list);
		}
		// System.out.println(bug);
		return bug;
	}