private List<Comment> comments(Map o) {
List<Comment> comments = new ArrayList<Comment>();
if (o.containsKey("comments")) {
for (Object e : ((List) o.get("comments"))) {
Map map = (Map) e;
comments.add(new Comment(getString(map, "value"), getInt(map, "line")));
}
}
return comments;
}