public static Country getCountryFromCall(String call) {
        if (call != null) {
            HashMap<String, Country> results = new HashMap<String, Country>();
            for (Country c : countryList) {
                for (String prefix : c.getPrefixes()) {
                    if ((call.toLowerCase().startsWith(prefix.toLowerCase())) || (("=" + call).equalsIgnoreCase(prefix))) {
                        results.put(prefix, c);
                    }
                }
            }
            if (results.size() > 1) {
                String prevPrefix = "";
                for (String p : results.keySet()) {
                    if (p.length() > prevPrefix.length()) {
                        prevPrefix = p;
                    }
                }

                return results.get(prevPrefix);
            }
            if (results.size() > 0) {
                return results.values().iterator().next();
            }

        }

        return null;
    }