Form form = (Form) iwc.getApplicationAttribute("run_result_cache_" + runPK + "_" + year != null ? year.getPrimaryKey() + "_" : "" + distance != null ? distance.getPrimaryKey() + "_" : "" + sortBy);
Form form = (Form) iwc.getApplicationAttribute("run_result_cache_" + runPK + "_" + (year != null ? year.getPrimaryKey() + "_" : "") + (distance != null ? distance.getPrimaryKey() + "_" : "") + sortBy);
	public void main(IWContext iwc) throws Exception {		_iwc = iwc;		iwrb = getResourceBundle(iwc);		_collator = Collator.getInstance(iwc.getCurrentLocale());		util = new SelectorUtility();		if (runPK != null) {			run = getGroupBiz().getGroupByGroupID(Integer.parseInt(runPK));		}		if (run == null) {			add("No run set...");			return;		}		if (iwc.isParameterSet(IWMarathonConstants.PARAMETER_SORT_BY)) {			sortBy = Integer.parseInt(iwc.getParameter(IWMarathonConstants.PARAMETER_SORT_BY));		}				if (iwc.isParameterSet(IWMarathonConstants.GROUP_TYPE_RUN_YEAR)) {			try {				year = getGroupBiz().getGroupByGroupID(Integer.parseInt(iwc.getParameter(IWMarathonConstants.GROUP_TYPE_RUN_YEAR)));			}			catch (RemoteException e) {				e.printStackTrace();			}			catch (FinderException e) {				e.printStackTrace();			}		}		if (iwc.isParameterSet(IWMarathonConstants.GROUP_TYPE_RUN_DISTANCE)) {			try {				distance = getGroupBiz().getGroupByGroupID(Integer.parseInt(iwc.getParameter(IWMarathonConstants.GROUP_TYPE_RUN_DISTANCE)));			}			catch (RemoteException e) {				e.printStackTrace();			}			catch (FinderException e) {				e.printStackTrace();			}		}		Form form = (Form) iwc.getApplicationAttribute("run_result_cache_" + runPK + "_" + year != null ? year.getPrimaryKey() + "_" : "" + distance != null ? distance.getPrimaryKey() + "_" : "" + sortBy);				if (form == null) {			form = new Form();			Table table = new Table();			table.setCellpadding(0);			table.setCellspacing(0);			table.setColumns(COLUMN_COUNT);			table.setWidth(Table.HUNDRED_PERCENT);			int row = 1;						table.setCellpaddingLeft(1, row, 16);			table.mergeCells(1, row, table.getColumns(), row);						table.add(getYearsDropdown(), 1, row);			table.add(Text.getNonBrakingSpace(), 1, row);			table.add(getDistanceDropdown(), 1, row);			table.add(Text.getNonBrakingSpace(), 1, row);			table.add(getSortDropdown(), 1, row++);			table.setHeight(row++, 12);				if (distance != null) {					row = insertHeadersIntoTable(table, row);									switch (sortBy) {						case IWMarathonConstants.RYSDD_TOTAL:							getTotalResults(table, row);							break;						case IWMarathonConstants.RYSDD_GROUPS:							getGroupResults(table, row);							break;						case IWMarathonConstants.RYSDD_GROUPS_COMP:														break;					}			}						for (int a = 2; a < COLUMN_COUNT; a = a + 2) {				table.setWidth(a, 2);				table.setColumnColor(a, "#FFFFFF");			}						form.add(table);			iwc.setApplicationAttribute("run_result_cache_" + runPK + "_" + year != null ? year.getPrimaryKey() + "_" : "" + distance != null ? distance.getPrimaryKey() + "_" : "" + sortBy, form);		}		add(form);	}