Sport sport = FacadeDB.getInstance().getSportSyncBroker().getSportByRemoteId(patientSportWs.getSportId());
if (sport == null) {
return null;
}
SportPatient sportPatient = new SportPatient();
SportPatientId id = new SportPatientId(sport.getId(), patient.getId());
sportPatient.setId(id);
sportPatient.setSport(sport);
sportPatient.setPatient(patient);
Integer difAges = patient.getAge() - patientSportWs.getAgeAtStart();
sportPatient.setAgeAtStartAsInteger(difAges);