Description
UIViewRoot.getLocale only convert some common locales passed as string. It does not check for variant inside the locale. By the spec, it is valid to pass a string value or ValueExpression pointing to a string value.
I think it is better to copy LocaleUtils class from commons lang and use it.