for (InteractionLog interactionLog : interactionLogs) {
if (pos >= end){
break;
}
if (pos >= start){
interactionLogsPaginated.add(new InteractionLogListEntry(interactionLog));
}
pos++;
}
InteractionLogListForm.InteractionLogPaginatedList paginatedList = new InteractionLogListForm.InteractionLogPaginatedList(interactionLogsPaginated,interactionLogs.size(),ENTRIES_PER_PAGE,pageNumber, sortCriterion,sortOrderDisplayTag);