code: public static Locale locale(ITemplate template) {
          if (null != template) {
              return template.__curLocale();
          }
          Locale retval;
          RythmEngine engine = RythmEngine.get();
          if (null != engine) {
              retval = engine.conf().locale();
          } else {
              retval = RythmConfigurationKey.I18N_LOCALE.getDefaultConfiguration();
          }
          return retval;
      }
docs: Return a {@link org.rythmengine.template.ITemplate template}'s current locale, or
  the the {@link org.rythmengine.RythmEngine#get() current engine}'s
  {@link org.rythmengine.conf.RythmConfigurationKey#I18N_LOCALE locale configuration}
  or finally the default locale with {@link java.util.Locale#getDefault() java.util.Locale.getDefault()}
  call
  
  @param template the template being executing
  @return a locale instance