if (distances != null) { Iterator disIter = distances.iterator(); while (disIter.hasNext()) { Group dis = (Group) disIter.next(); disMap.put(dis.getPrimaryKey().toString(), dis.getName()); } } return disMap;
return distances;
	public Map getDistancesMap(Group run, String year) {		IWContext iwc = IWContext.getInstance();		Map disMap = new LinkedHashMap();		Collection distances = null;		Collection type = new ArrayList();		type.add(IWMarathonConstants.GROUP_TYPE_RUN_DISTANCE);		Iterator yearsIter = getYears(run).iterator();		while (yearsIter.hasNext()) {			Group y = (Group) yearsIter.next();			if (y.getName().equals(year)) {				try {					distances = getGroupBiz(iwc).getChildGroupsRecursiveResultFiltered(y, type, true);				}				catch (Exception e) {					distances = null;				}			}			else {				distances = null;			}		}		if (distances != null) {			Iterator disIter = distances.iterator();			while (disIter.hasNext()) {				Group dis = (Group) disIter.next();				disMap.put(dis.getPrimaryKey().toString(), dis.getName());			}		}		return disMap;	}