runFix(iwc.getParameter("user_select_sql"),iwc.isParameterSet("req_grp_crtn"), iwc.isParameterSet("reg_mv_grp"));
runFix(iwc.getParameter("user_select_sql"),iwc.isParameterSet("req_grp_crtn"), iwc.isParameterSet("reg_mv_grp"), iwc.isParameterSet(PARAM_NAME_TOP_DOMAIN), iwc.isParameterSet(PARAM_NAME_TRAVEL_GROUP_FIX));
	public void main(IWContext iwc)throws Exception{		df = DateFormat.getDateTimeInstance(DateFormat.SHORT,DateFormat.SHORT,iwc.getCurrentLocale());		gBus = (GroupBusiness) IBOLookup.getServiceInstance(iwc, GroupBusiness.class);		String sql = iwc.getParameter("user_select_sql");						Form form = new Form();		TextArea ta = new TextArea("users_select_sql");		ta.keepStatusOnAction(true);		ta.setColumns(70);		ta.setRows(10);		int row = 1;		Table table = new Table();		table.add("Tranforms selected users from old user to new user",1,row++);		table.add(ta,1,row++);		SubmitButton fix = new SubmitButton("Transform users", PARAM_NAME_TRANSFORM, "true");		SubmitButton show = new SubmitButton("Show users", PARAM_NAME_SHOW_OLD, "true");		SubmitButton createTestUser = new SubmitButton("Create Test User", PARAM_NAME_CREATE_OLD, "true");		table.add(show,1,row);		table.add(fix,1,row);		table.add(createTestUser,1,row);		row++;		CheckBox requireGroupCreation = new CheckBox("req_grp_crtn","true");		table.add(requireGroupCreation,1,row);		table.add("User group creation required (else user id without group created shown in log) ",1,row++);		CheckBox moveGroups = new CheckBox("reg_mv_grp", "true");		moveGroups.setChecked(true);		table.add(moveGroups, 1, row);		table.add("Move group that are in the way of ic_user_representative groups (relations will not be lost)", 1, row++);				BusyBar busyBar = new BusyBar("fix_busy");		busyBar.addBusyObject(fix);		busyBar.addBusyObject(show);		busyBar.addBusyObject(createTestUser);		table.add(busyBar,1,row++);		table.add("DEFAULT SQL: "+getDefaultUserSelectSQL(),1,row++);		table.add("WARNING: Only select fields  \"ic_user_id, first_name,middle_name,last_name,user_representative\" in same order",1,row++);		form.add(table);		add(form);		if(iwc.isParameterSet(PARAM_NAME_TRANSFORM)){			runFix(iwc.getParameter("user_select_sql"),iwc.isParameterSet("req_grp_crtn"), iwc.isParameterSet("reg_mv_grp"));			showUsers(sql);		}		if(iwc.isParameterSet(PARAM_NAME_SHOW_OLD)){			showUsers(sql);		}		if(iwc.isParameterSet(PARAM_NAME_CREATE_OLD)) {			createOldUser(iwc);			showUsers(sql);		}	}