public KladrComboBoxModel(String code, Integer type){
        Kladr kladr = new Kladr();
        LinkedHashMap<String, String> subjects = null;
        if(code == null){
            subjects = kladr.getSubjects();
        }else if(type == KladrComboBoxModel.REGION){
            subjects = kladr.getRegions(code);
        }else if(type == KladrComboBoxModel.CITY){
            subjects = kladr.getCities(code);
        }else if(type == KladrComboBoxModel.MICROREGIONS){
            subjects = kladr.getMicroRegions(code);
        }else if(type == KladrComboBoxModel.STREET){
            subjects = kladr.getStreets(code);
        }

        int i = 0;
        for(String k: subjects.keySet()){
            data.add(new Subject(
                    subjects.get(k),
                    k
            ));
            i++;
        }
    }