List<ActivityGroupView> activityGroupViews = new ActivityGroupViewHandler(
entityManager, log).getActivityGroupViews(project);
List<ActivityGroup> activityGroups = new ArrayList<ActivityGroup>();
for (ActivityGroupView activityGroupView : activityGroupViews) {
ActivityGroup activityGroup = activityGroupView.getActivityGroup();
if (!activityGroups.contains(activityGroup)) {
activityGroups.add(activityGroup);
}
}