private void loadContactsComboWithoutSpecificItems(boolean bRemoveSpinalMedAdmissionContactType, boolean bRemoveInpatientContactType, boolean bRemoveOutPatientContactType) { form.cmbConContactType().clear(); ContactTypeCollection collContactType = LookupHelper.getContactType(domain.getLookupService()); for(int i=0;i<collContactType.size();i++) { if(bRemoveSpinalMedAdmissionContactType && collContactType.get(i).equals(ContactType.SPINALMEDICALADMISSION)) continue; if(bRemoveInpatientContactType && collContactType.get(i).equals(ContactType.INPATIENT)) continue; if(bRemoveOutPatientContactType && collContactType.get(i).equals(ContactType.OUTPATIENT)) continue; form.cmbConContactType().newRow(collContactType.get(i), collContactType.get(i).getText()); } }