code: public static Locale toLocale(String strLocale, Locale defaultValue) {
  	return LocaleFactory.getLocale(strLocale, defaultValue);
      }
docs: casts a string to a Locale
  
  @param strLocale
  @param defaultValue
  @return Locale from String