try { distance = getGroupBiz().getGroupByGroupID(groupID); } catch (RemoteException e) { e.printStackTrace(); } catch (FinderException e) { e.printStackTrace(); }
	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;		}				_groupYear = iwc.getParameter(IWMarathonConstants.GROUP_TYPE_RUN_YEAR);		if (_groupYear != null) {			try {				year = getGroupBiz().getGroupByGroupID(Integer.parseInt(_groupYear));			} catch (RemoteException e) {				e.printStackTrace();			} catch (FinderException e) {				e.printStackTrace();			}		}				_groupDistance = iwc.getParameter(IWMarathonConstants.GROUP_TYPE_RUN_DISTANCE);		int groupID = -1;		if (_groupDistance != null && !_groupDistance.equals("")) {			groupID = Integer.parseInt(_groupDistance);		}		try {			distance = getGroupBiz().getGroupByGroupID(groupID);		} catch (RemoteException e) {			e.printStackTrace();		} catch (FinderException e) {			e.printStackTrace();		}				Form form = new Form();		Table table = new Table();		form.add(getYearsDropdown());		form.add(getDistanceDropdown());		form.add(getSortDropdown());		form.add(new Break(2));				if (distance != null) {			try {				List runGroups = new ArrayList(getGroupBiz().getChildGroups(distance));				sortRunnerGroups(runGroups);				Iterator runGroupIter = runGroups.iterator();				int row = 1;				while (runGroupIter.hasNext()) {					Group runGroup = (Group) runGroupIter.next();					row = insertRunGroupIntoTable(table, row, runGroup);						List runners = new ArrayList(getGroupBiz().getUsers(runGroup));					List runs = getRunsForRunners(runners);					sortRuns(runs);					Iterator runIter = runs.iterator();					int num = 1;					while (runIter.hasNext()) {						Run run = (Run) runIter.next();						row = insertRunIntoTable(table, row, run, num);						num++;					}				}			}			catch (Exception e) {				e.printStackTrace();			}		}		form.add(table);		add(form);	}