activityToPost.setDestinationStream(new StreamEntityDTO(request.getEntityType(), uniqueId));
activityToPost.setBaseObjectProperties(new HashMap<String, String>(Collections.singletonMap("content",
pieces.get(0))));
TaskHandlerAction postActivityAction = postActivityActions.get(request.getEntityType());
ActivityDTO postedActivity = (ActivityDTO) executor.execute(postActivityAction, inActionContext,
new PostActivityRequest(activityToPost));
// post the comments
for (String piece : pieces.subList(1, pieces.size()))
{
CommentDTO thisComment = new CommentDTO();