code: public static Locale getLocaleByCountry(String lang, String country) {
          return StringUtils.isNotBlank(country) ? new Locale(lang, country) : new Locale(lang);
      }
docs: Generates the locale
  
  @param lang    the language
  @param country the country
  @return the locale