public static Integer getNumLicensedReferees(Club c, Season season) { RefereeDao refereeDao = (RefereeDao) UnitOfWork.get().getDao(Referee.class); return refereeDao.countLicensedByClub(season, c); }