}
// ID of person -> Post to personal stream
else if (tokenData.containsKey(TokenContentFormatter.META_KEY_PERSON_STREAM))
{
return new UserActionRequest("postSplitActivityAndCommentsAction", null,
new PostSplitActivityAndCommentsRequest(EntityType.PERSON,
tokenData.get(TokenContentFormatter.META_KEY_PERSON_STREAM), content));
}
// ID of group -> Post to group stream
else if (tokenData.containsKey(TokenContentFormatter.META_KEY_GROUP_STREAM))
{
return new UserActionRequest("postSplitActivityAndCommentsAction", null,
new PostSplitActivityAndCommentsRequest(EntityType.GROUP,
tokenData.get(TokenContentFormatter.META_KEY_GROUP_STREAM), content));
}
else
{
throw new ExecutionException("Cannot determine action to execute.");