}
public GroupDefinition getById(int groupDefinitionId) throws GroupDefinitionNotFoundException {
GroupDefinition groupDefinition = entityManager.find(GroupDefinition.class, groupDefinitionId);
if (groupDefinition == null) {
throw new GroupDefinitionNotFoundException("Group definition with specified id does not exist");
}
return groupDefinition;
}