String threadId = blip.getThread().getId();
blipData.setThreadId(threadId);
// If it's the root thread, that doesn't have thread id, then skip.
if (!threadId.isEmpty()) {
ConversationThread thread = blip.getThread();
addThread(eventMessageBundle, thread, -1, wavelet);
}
// Add the inline reply threads.
List<String> threadIds = Lists.newLinkedList();
for (LocatedReplyThread<? extends ConversationThread> thread : blip.locateReplyThreads()) {
String replyThreadId = thread.getThread().getId();
threadIds.add(replyThreadId);
addThread(eventMessageBundle, thread.getThread(), thread.getLocation(), wavelet);
}
blipData.setReplyThreadIds(threadIds);
return blipData;
}