private String prevediIzLatiniceUCirilicu(String rec) {

        String recLatinica = "";
        String slovo = "";
        char c;
        niz:
        for (int i = 0; i < rec.length(); i++) {

            //provera da li su u pitanju dvoslovna slova
            if ((i != rec.length() - 1 && String.valueOf(rec.charAt(i + 1)).equalsIgnoreCase("j") && dvoslovnaSlova.indexOf(String.valueOf(rec.charAt(i)).toLowerCase()) != -1) || (i != rec.length() - 1 && String.valueOf(rec.charAt(i + 1)).equalsIgnoreCase("ž") && String.valueOf(rec.charAt(i)).equalsIgnoreCase("d"))) {
                slovo = slovo + String.valueOf(rec.charAt(i));
                continue niz;
            }

            if (slovo.length() < 1) {
                slovo = (String) latinicaCirilica.get(String.valueOf(rec.charAt(i)));
            } else {

                slovo = (String) latinicaCirilica.get(slovo + String.valueOf(rec.charAt(i)));
            }

            if (slovo != null) {
                recLatinica = recLatinica + slovo;

            } else {
                recLatinica = recLatinica + rec.charAt(i);
            }
            slovo = "";

        }
        return recLatinica;
    }