UserSet originalUserSet = userSetManager.getUserSet(originalUserSetId);
if (originalUserSet == null){
throw new InputException(getResources(req).getMessage(locale, "um.userSetNotFound", originalUserSetId));
}
checkAccessRights(req, originalUserSet.getGroup());
Group group = new GroupManager(locale,session).getGroup(userSetEnterOrEditForm.getGroupId());
boolean differentGroup = group != originalUserSet.getGroup();
if (includeUserAssignments && differentGroup && !userSetEnterOrEditForm.isConfirmationPending() && originalUserSet.getUsers().size() >= 1){
userSetEnterOrEditForm.setConfirmationPending(true);
String reallyDuplicate1 = getResources(req).getMessage(locale,"um.reallyDuplicate1");
String reallyDuplicate2 = getResources(req).getMessage(locale,"um.reallyDuplicate2");