code: public static Locale getLocale(String country)
      {
          if(country == null || country.length() == 0)
              country = Locale.getDefault().getCountry();
          List<Locale> locales = LocaleUtils.languagesByCountry(country);
          Locale locale = Locale.getDefault();
          if(locales.size() > 0)
              locale = locales.get(0); // Use the first locale that matches the country
          return locale;
      }
docs: Returns the locale for the given country.
  @param country The country for the locale
  @return The locale for the given country