int participantNumber = runHome.getNextAvailableParticipantNumber(getMinParticipantNumber(group.getName()), getMaxParticipantNumber(group.getName()));
int participantNumber = runHome.getNextAvailableParticipantNumber(group.getPrimaryKey(), getMinParticipantNumber(group.getName()), getMaxParticipantNumber(group.getName()));
	public void setParticipantNumber(Participant participant) {		try {			ParticipantHome runHome = (ParticipantHome) getIDOHome(Participant.class);						int groupID = participant.getRunDistanceGroupID();			Group group = null;			try {				group = getGroupBiz().getGroupByGroupID(groupID);			}			catch (FinderException e) {				e.printStackTrace();			}			if(group!=null) {				int participantNumber = runHome.getNextAvailableParticipantNumber(getMinParticipantNumber(group.getName()), getMaxParticipantNumber(group.getName()));				if (participantNumber == 0) {					participantNumber = getMinParticipantNumber(group.getName());				}				else {					participantNumber++;				}				participant.setParticipantNumber(participantNumber);				participant.store();			}		}		catch (IDOException ie) {			log(ie);		}		catch (RemoteException re) {			log(re);		}	}