pan class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Attempts to find a matching locale based on <code>pref</code> and list of supported locales, using the matching
 algorithm as described in JSTL 8.3.2.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>context</code> - the <code>FacesContext</code> for the current request</dd>
<dd><code>pref</code> - the preferred locale</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the Locale based on pref and the m