return mapping.findForward("created");
}
// set user set operand according to form
private void setUserSetOperand(UserSetCommandEntry userSetCommandEntry, UserSetInteractionEnterOrEditForm form) {
UserSetManager userSetManager = new UserSetManager(locale,session);
UserSet userSetOperand;
switch (form.getCommandType()) {
case 6:
userSetOperand = form.getAssignUserSetId() == -2 ? null : userSetManager.getUserSet(form.getAssignUserSetId());
userSetCommandEntry.setUserSetOperand(userSetOperand);
userSetCommandEntry.setCurrentUserSetAsOperand(form.getAssignUserSetId() == -2 ? 1 : 0);
break;
case 7:
userSetOperand = form.getReplaceWithUserSetId() == -2 ? null : userSetManager.getUserSet(form.getReplaceWithUserSetId());
userSetCommandEntry.setUserSetOperand(userSetOperand);
userSetCommandEntry.setCurrentUserSetAsOperand(form.getReplaceWithUserSetId() == -2 ? 1 : 0);
break;
case 8:
userSetOperand = form.getRemoveUserSetId() == -2 ? null : userSetManager.getUserSet(form.getRemoveUserSetId());
userSetCommandEntry.setUserSetOperand(userSetOperand);
userSetCommandEntry.setCurrentUserSetAsOperand(form.getRemoveUserSetId() == -2 ? 1 : 0);
break;
case 9:
userSetOperand = form.getKeepSharedUserSetId() == -2 ? null : userSetManager.getUserSet(form.getKeepSharedUserSetId());
userSetCommandEntry.setUserSetOperand(userSetOperand);
userSetCommandEntry.setCurrentUserSetAsOperand(form.getKeepSharedUserSetId() == -2 ? 1 : 0);
break;
case 10:
userSetOperand = form.getDrawFromUserSetId() == -2 ? null : userSetManager.getUserSet(form.getDrawFromUserSetId());
userSetCommandEntry.setUserSetOperand(userSetOperand);
userSetCommandEntry.setCurrentUserSetAsOperand(form.getDrawFromUserSetId() == -2 ? 1 : 0);
if(form.getNofDrawings() != null && !form.getNofDrawings().equals("")){
userSetCommandEntry.setNofUsers(Integer.parseInt(form.getNofDrawings()));
} else {