private void populateAllergies(EMISAllergiesVoCollection allergies) { if(allergies!=null) for(int i=0; i<allergies.size(); i++){ EMISAllergiesVo allergiesVo = allergies.get(i); grdAllergiesRow row = form.lyrDetails().tabAllergiesEntity().grdAllergies().getRows().newRow(); row.setColObservation(allergiesVo.getObservation()); row.setColEffectiveDate(allergiesVo.getEffectiveDate()); row.setColOriginalTerm(allergiesVo.getOriginalTerm()); row.setColConfidentialityPolicy(allergiesVo.getConfidentialityPolicy()); row.setColDisplayName(allergiesVo.getOriginalTerm()); row.setValue(allergiesVo); } }