/** * passes through to getLocaleConstant. If this returns null, then this method passes through to * createLocale. * * @param localeString the locale string * @return the parsed locale */ public static Locale getLocale(String localeString) { Locale locale = getLocaleConstant(localeString); if (locale != null) { return locale; } return createLocale(localeString); } }