if (commentsPanel != null)
{
mainPanel.add(commentsPanel);
if (msg.getComments() != null && !msg.getComments().isEmpty())
{
commentsPanel.renderAllComments(msg.getComments());
}
else
{
commentsPanel.renderFirstLast(msg.getFirstComment(), msg.getLastComment(), msg.getDestinationStream()
.getType(), msg.getDestinationStream().getUniqueIdentifier(), activityLinkBuilder);