long pageSize = getMinMaxPageSize();
String socialWorkspaceActivityObject = ActivityHelper.createDocumentActivityObject(
getRepositoryName(), getSocialWorkspaceId());
RelationshipKind relationshipKind = getRelationshipKind();
MiniMessageService miniMessageService = Framework.getLocalService(MiniMessageService.class);
pageMiniMessages.addAll(miniMessageService.getMiniMessageActivitiesFor(
socialWorkspaceActivityObject, relationshipKind,
socialWorkspaceActivityObject, getCurrentPageOffset(),
pageSize).toActivityMessages(getLocale()));
nextOffset = offset + pageMiniMessages.size();