public void setSelectedCode(String code) {
        setSelectedIndex(-1);
        for(Map.Entry<String,String> entry : map.entrySet()) {
            if (code.equals(entry.getValue())) {
                setSelectedItem(entry.getKey());
            }
        }
    }