public static Locale getLocale() {
        if (tlocale.get() != null) {
            return tlocale.get();
        } else {
            return Locale.getDefault();
        }
    }
Gets the locale to use when finding a bundle.  The locale to use is either from the
thread local value, if set, or else the system default locale.
@return the locale
common/util/src/main/java/io/apiman/common/util/AbstractMessages.java