private void populateRiskFactorsFromGrid(RACPSymptomRiskFactorsVo symptomRiskFactorsVo) { RACPRiskFactorCollection collRACPRiskFactor = new RACPRiskFactorCollection(); for (int i = 0; i < form.grdRisks().getRows().size(); i++) { grdRisksRow row = form.grdRisks().getRows().get(i); if(row.getcolSelect()) collRACPRiskFactor.add(row.getValue()); } if(collRACPRiskFactor.size()>0) symptomRiskFactorsVo.setRiskFactors(collRACPRiskFactor); else symptomRiskFactorsVo.setRiskFactors(null); }