@@ -0,0 +1,996 @@
+package awesomefb;%0A%0Aimport com.mongodb.BasicDBObject;%0Aimport org.springframework.social.facebook.api.Comment;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A * Created by earl on 5/25/2015.%0A */%0Apublic class ExtractedCommentsList %7B%0A    private ArrayList%3CExtractedComment%3E mCommentsList;%0A%0A    public ExtractedCommentsList(List%3CComment%3E comments) %7B%0A        mCommentsList = new ArrayList%3CExtractedComment%3E();%0A        for (Comment comment: comments) %7B%0A            mCommentsList.add(new ExtractedComment(comment));%0A        %7D%0A    %7D%0A%0A    public BasicDBObject toDBObject() %7B%0A        Integer count = mCommentsList.size();%0A        BasicDBObject doc = new BasicDBObject(%22count%22, count);%0A%0A        for (Integer i = 0; i != count; i++) %7B%0A            ExtractedComment comment = mCommentsList.get(i);%0A            doc.append(i.toString(), new BasicDBObject(%22creator%22, comment.getCreator().toDBObject())%0A                    .append(%22message%22, comment.getMessage()));%0A        %7D%0A        return doc;%0A    %7D%0A%7D%0A

Add ExtractedCommentsList class