/** * Returns the choice values from configured environment params. * * @param envParams map for configured parameters * @return the choice values from configured environment params. */ public Map getChoiceValues(Map envParams) { List discoveryConfigList = ProviderUtils.getAllDiscoveryConfig(); Map answer = new HashMap(); if (discoveryConfigList != null && !discoveryConfigList.isEmpty()) { for (Iterator it = discoveryConfigList.iterator(); it.hasNext(); ) { DiscoveryConfig discoConfig = (DiscoveryConfig) it.next(); answer.put(discoConfig.getName(), discoConfig.getName()); } } answer.put("[Empty]", "label.Empty"); // return the choice values map return (answer); }