String year = "2004";
IWTimestamp now = IWTimestamp.RightNow(); Integer y = new Integer(now.getYear()); String year = y.toString();
	private void commitRegistration(IWContext iwc) {		RunBusiness runBiz = getRunBiz(iwc);		//user info		String name = iwc.getParameter(IWMarathonConstants.PARAMETER_NAME);		String nationality = iwc.getParameter(IWMarathonConstants.PARAMETER_NATIONALITY);		String ssnIS = iwc.getParameter(IWMarathonConstants.PARAMETER_SSN_IS);		String ssn = iwc.getParameter(IWMarathonConstants.PARAMETER_SSN);		String gender = iwc.getParameter(IWMarathonConstants.PARAMETER_GENDER);		String address = iwc.getParameter(IWMarathonConstants.PARAMETER_ADDRESS);		String postal = iwc.getParameter(IWMarathonConstants.PARAMETER_POSTAL);		String city = iwc.getParameter(IWMarathonConstants.PARAMETER_CITY);		String country = iwc.getParameter(IWMarathonConstants.PARAMETER_COUNTRY);		String tel = iwc.getParameter(IWMarathonConstants.PARAMETER_TEL);		String mobile = iwc.getParameter(IWMarathonConstants.PARAMETER_MOBILE);		String email = iwc.getParameter(IWMarathonConstants.PARAMETER_EMAIL);		//run info		String run = iwc.getParameter(IWMarathonConstants.GROUP_TYPE_RUN);		String distance = iwc.getParameter(IWMarathonConstants.GROUP_TYPE_RUN_DISTANCE);		String year = "2004";//iwc.getParameter(IWMarathonConstants.GROUP_TYPE_RUN_YEAR);		String tshirt = iwc.getParameter(IWMarathonConstants.PARAMETER_TSHIRT);		String chip = iwc.getParameter(IWMarathonConstants.PARAMETER_CHIP);		String chipNumber = iwc.getParameter(IWMarathonConstants.PARAMETER_CHIP_NUMBER);		String groupComp = iwc.getParameter(IWMarathonConstants.PARAMETER_GROUP_COMP);		String groupName = iwc.getParameter(IWMarathonConstants.PARAMETER_GROUP_NAME);		String bestTime = iwc.getParameter(IWMarathonConstants.PARAMETER_BEST_TIME);		String goalTime = iwc.getParameter(IWMarathonConstants.PARAMETER_GOAL_TIME);		int userID = -1;		if (ssnIS != null && !ssnIS.equals("")) {			userID = runBiz.saveUser(name, ssnIS, gender, address, postal, city, country, tel, mobile, email);		}		else if (ssn != null && !ssn.equals("")) {			userID = runBiz.saveUser(name, ssn, gender, address, postal, city, country, tel, mobile, email);		}		if (userID > 0) {			runBiz.saveRun(userID, run, distance, year, nationality, tshirt, chipNumber, groupName, bestTime, goalTime);		}		Table t = new Table();		t.setCellpadding(0);		t.setCellspacing(0);		t.setWidth(Table.HUNDRED_PERCENT);		int row = 1;		t.setHeight(row++, 12);		t.add(iwrb.getLocalizedString("registration_received", "Your registration has been received."), 1, row++);		t.setHeight(row++, 8);		Table buttonTable = new Table(3, 1);		buttonTable.setCellpadding(0);		buttonTable.setCellspacing(0);		buttonTable.setWidth(2, 1, 12);		Link backBlue = getStyleLink(new Link(iwrb.getLocalizedString("run_reg.back", "Back")), STYLENAME_BLUE_TEXT);		Link backGreen = getStyleLink(new Link("&gt;&gt;"), STYLENAME_GREEN_TEXT);		Link payBlue = getStyleLink(new Link(iwrb.getLocalizedString("run_reg.pay", "Pay fee")), STYLENAME_BLUE_TEXT);		Link payGreen = getStyleLink(new Link("&gt;&gt;"), STYLENAME_GREEN_TEXT);		buttonTable.add(backBlue, 1, 1);		buttonTable.add(Text.getNonBrakingSpace(), 1, 1);		buttonTable.add(backGreen, 1, 1);		if (showPayment) {			buttonTable.add(payBlue, 3, 1);			buttonTable.add(Text.getNonBrakingSpace(), 3, 1);			buttonTable.add(payGreen, 3, 1);		}		t.add(buttonTable, 1, row);		add(t);	}