Group run = (Group) i.next(); Link l = new Link(iwrb.getLocalizedString(run.getName(), run.getName()));
Group runGroup = (Group) i.next(); Group run = null; try { run = runBiz.getRunGroupOfTypeForGroup(runGroup, IWMarathonConstants.GROUP_TYPE_RUN); } catch (RemoteException e) { e.printStackTrace(); } Group year = null; try { year = runBiz.getRunGroupOfTypeForGroup(runGroup, IWMarathonConstants.GROUP_TYPE_RUN_YEAR); } catch (RemoteException e) { e.printStackTrace(); } Link l = new Link(iwrb.getLocalizedString(run.getName())+ " " + iwrb.getLocalizedString(year.getName()), iwrb.getLocalizedString(run.getName())+ " " + iwrb.getLocalizedString(year.getName()));
	public void lineUpFields() {		IWContext iwc = IWContext.getInstance();		IWResourceBundle iwrb = getResourceBundle(iwc);		RunBusiness runBiz = getRunBiz(iwc);		String userID = iwc.getParameter("ic_user_id");		String selectedGroupID = iwc.getParameter("selected_ic_group_id");		User user = null;		if(userID != null) {			try {				user = getUserBusiness(iwc).getUser(Integer.parseInt(userID));			}			catch (NumberFormatException e1) {				e1.printStackTrace();			}			catch (RemoteException e1) {				e1.printStackTrace();			}		}				try {			this.runs = runBiz.getRunsForUser(user);		}		catch (RemoteException e) {			e.printStackTrace();		}				Table t = new Table();		int row = 1;		t.setCellpadding(0);		t.setCellspacing(0);		t.add(this.runText,1,row++);		if(this.runs != null) {			Iterator i = this.runs.iterator();			while(i.hasNext()) {				Group run = (Group) i.next();				Link l = new Link(iwrb.getLocalizedString(run.getName(), run.getName()));				l.setStyleClass("styledLink");				l.addParameter(IWMarathonConstants.GROUP_TYPE_RUN,run.getPrimaryKey().toString());				l.addParameter("ic_user_id",Integer.parseInt(userID));				if (selectedGroupID != null) {					l.addParameter("selected_ic_group_id",Integer.parseInt(selectedGroupID));				}				l.setWindowToOpen(UpdateRunInfoWindow.class);				if(l != null) {					t.add(l,1,row++);				}			}		}		this.add(t,1,1);	}