code: static Locale getLocale(PageContext pageContext, String name) {
  
          Locale loc = null;
  
          Object obj = javax.servlet.jsp.jstl.core.Config.find(pageContext, name);
          if (obj != null) {
              if (obj instanceof Locale) {
                  loc = (Locale)obj;
              } else {
                  loc = SetLocaleSupport.parseLocale((String)obj);
              }
          }
  
          return loc;
      }
docs: Returns the locale specified by the named scoped attribute or context
  configuration parameter.
  
  <p> The named scoped attribute is searched in the page, request,
  session (if valid), and application scope(s) (in this order). If no such
  attribute exists in any of the scopes, the locale is taken from the
  named context configuration parameter.
  
  @param pageContext the page in which to search for the named scoped
  attribute or context configuration parameter
  @param name the name of the scoped attribute or context configuration
  parameter
  
  @return the locale specified by the named scoped attribute or context
  configuration parameter, or <tt>null</tt> if no scoped attribute or
  configuration parameter with the given name exists