private void mapComment(JSONObject jsonComment, Comment comment) throws JSONException { comment.setId(jsonComment.getInt("id")); comment.setUsername( jsonComment.getJSONObject("links").getJSONObject("user").getString("title")); comment.setText(jsonComment.getString("text")); comment.setTimestamp(ReviewboardUtil.marshallDate(jsonComment.getString("timestamp"))); }