changed groupingType property to be groupingTypeIDchanged the GroupingDTO(Grouping grouping) constructor so that it directly passes the grouping object into the processGroupingActivity() method
modified the if statement in getGroupingByUUID so that it will return the first element in the list, only if the size of the list is greater than 0 without this, an exception is thrown
added property groupingTypeId changed the getGroupingTypeId to return the groupingTypeId instead of using the "instanceOf" checks added method isRandomGrouping() , isChosenGrouping() and isClassGrouping()
Modified the "leaveToolSession" and related code to allow the tool to pass the userid (which it gets from UserDTO in the shared session) rather than pass User (which the tool doesn't have).