Iterator i = list.iterator();
List<Pair<DiseaseDetails, DiagnosisDetails>> detailsList = new ArrayList<Pair<DiseaseDetails, DiagnosisDetails>>();
while(i.hasNext()) {
Disease s = (Disease) i.next();
DiagnosisDetails diagnosysDiagnosis = map.get(s);
DiseaseDetails diseaseDetails = s.getDetails((RightChecker) this);
detailsList.add(new Pair<DiseaseDetails, DiagnosisDetails>(diseaseDetails, diagnosysDiagnosis));
}
return detailsList;
}