public void initialize() throws FormOpenException { SecurityLevelLiteVoCollection voCollSecurity = domain.listSecurityLevel(); if(voCollSecurity == null || voCollSecurity.size() == 0) throw new FormOpenException("Security Level Configuration is mandatory"); form.getLocalContext().setSecurityLevels(voCollSecurity); form.getLocalContext().setRoles(domain.listActiveAppRole()); //load roles into search combo for(AppRoleLiteVo voRole : form.getLocalContext().getRoles()) form.cmbRole().newRow(voRole, voRole.getName()); form.getLocalContext().setOCSServices(domain.listActiveServiceByOCSCategories()); }