protected Map getRaceParticipants(IWContext iwc) { Collection raceParticipants = null; try { raceParticipants = getRaceBusiness(iwc).getParticipantHome().findAllByRace(this.race); } catch (RemoteException e) { } catch (FinderException e) { } catch (Exception e) { e.printStackTrace(); } if (raceParticipants != null && !raceParticipants.isEmpty()) { Map raceEvents = new HashMap(); Iterator it = raceParticipants.iterator(); while (it.hasNext()) { Participant info = (Participant) it.next(); List eventParticipants = null; if (raceEvents.containsKey(info.getRaceEvent().getPrimaryKey())) { eventParticipants = (List) raceEvents.get(info.getRaceEvent().getPrimaryKey()); } else { eventParticipants = new ArrayList(); } eventParticipants.add(info); raceEvents.put(info.getRaceEvent().getPrimaryKey(), eventParticipants); } return raceEvents; } return null; }