private Map<String, T> getChoiceMap() {
        if (choiceMap == null || alwaysReload()) {
            Collection<T> choices = loadChoices();
            choiceMap = new HashMap<>();
            for (T choice: choices) {
                // TODO: smarter initialization of the map
                choiceMap.put(choice.getLocalPart(), choice);
            }
        }
        return choiceMap;
    }
private Map<String, T> getChoiceMap() {
        if (choiceMap == null || alwaysReload()) {
            Collection<T> choices = loadChoices();
            choiceMap = new HashMap<>();
            for (T choice: choices) {
               
                choiceMap.put(choice.getLocalPart(), choice);
            }
        }
        return choiceMap;
    }
private map<string, t> getchoicemap() { if (choicemap == null || alwaysreload()) { collection<t> choices = loadchoices(); choicemap = new hashmap<>(); for (t choice: choices) { choicemap.put(choice.getlocalpart(), choice); } } return choicemap; }