RunGroup runnerGroup = (RunGroup) runGroups.get(groups);
RunGroup runnerGroup = (RunGroup) runGroups.get(runner.getRunGroupName());
	private void getGroupCompetitionResults(Table table, int row) {		try {			List groups = new ArrayList(getGroupBiz().getChildGroups(distance));			List runs = new ArrayList();			Iterator runGroupIter = groups.iterator();			while (runGroupIter.hasNext()) {				Group runGroup = (Group) runGroupIter.next();				List runners = new ArrayList(getGroupBiz().getUsers(runGroup));				runs.addAll(getRunsForRunners(runners));			}			sortRuns(runs);						List groupRunners = new ArrayList();			Iterator iter = runs.iterator();			while (iter.hasNext()) {				Run runner = (Run) iter.next();				if (runner.getRunGroupName() != null && runner.getRunGroupName().length() > 0) {					groupRunners.add(runner);				}			}			System.out.println("Number of group runners: " + groupRunners.size());			Map runGroups = new HashMap();			RunGroupMap map = new RunGroupMap();			Iterator iterator = groupRunners.iterator();			while (iterator.hasNext()) {				Run runner = (Run) iterator.next();				RunGroup runnerGroup = (RunGroup) runGroups.get(groups);				if (runnerGroup == null) {					runnerGroup = new RunGroup(runner.getRunGroupName());					runGroups.put(runner.getRunGroupName(), runnerGroup);					System.out.println("Creating run group: " + runnerGroup.getGroupName());				}				map.put(runnerGroup, runner);			}			System.out.println("Number of groups: " + map.size());						Map orderedGroups = new TreeMap();			iterator = map.keySet().iterator();			while (iterator.hasNext()) {				RunGroup group = (RunGroup) iterator.next();				orderedGroups.put(group.getCounter(), group);			}			System.out.println("Number of ordered groups: " + orderedGroups.size());						iterator = orderedGroups.values().iterator();			while (iterator.hasNext()) {				RunGroup runGroup = (RunGroup) iterator.next();				Collection runnersInRunGroup = map.getCollection(runGroup);				row = insertRunGroupIntoTable(table, row, runGroup.getGroupName() + " - " + runGroup.getCounter().toString());				Iterator runIter = runnersInRunGroup.iterator();				int num = 1;				int count = 0;				while (runIter.hasNext()) {					if (count < 3) {						Run run = (Run) runIter.next();						num = runs.indexOf(run);						row = insertRunIntoTable(table, row, run, num);					}					count++;				}			}		}		catch (Exception e) {			e.printStackTrace();		}	}