private Locale getLocale(FacesContext context) {

        // PENDING(craigmcc) - JSTL localization context?
        Locale locale = this.locale;
        if (locale == null) {
            locale = context.getViewRoot().getLocale();
        }
        return (locale);

    }
private Locale getLocale ( FacesContext context ) { Locale locale = this . locale ; if ( locale == null ) { locale = context . getViewRoot ( ) . getLocale ( ) ; } return ( locale ) ; }
<p>Return the <code>Locale</code> we will use for localizing our
formatting and parsing processing.</p>

@param context The {@link FacesContext} for the current request