code: @SuppressWarnings({"unchecked"})
      public static <T extends LocalizableResource> T get(Class<T> cls, String locale) {
          Map<String, LocalizableResource> localeCache = getLocaleCache(cls);
          T m = (T) localeCache.get(locale);
          if (m != null) {
              return m;
          }
          synchronized (cache) {
              m = (T) localeCache.get(locale);
              if (m != null) {
                  return m;
              }
              m = provider.create(cls, locale);
              put(cls, locale, m);
              return m;
          }
      }
docs: Get localization object for the specified locale.
  
  @param cls    localization interface class
  @param locale locale string
  @param <T>    localization interface class
  @return object implementing specified class