code: public Locale getLocale()
              throws JspException
      {
          Locale loc = null;
          if (_language != null || _country != null) {
              // language is required
              if (_language == null) {
                  String s = Bundle.getString("Tags_LocaleRequiresLanguage", new Object[]{_country});
                  registerTagError(s, null);
                  return super.getUserLocale();
              }
  
              if (_country == null)
                  loc = new Locale(_language);
              else
                  loc = new Locale(_language, _country);
          }
          else
              loc = super.getUserLocale();
  
          return loc;
      }
docs: Returns the locale based on the country and language.
  @return the locale