code: public <T extends LocalizableResource> T create(Class<T> cls, String locale) {
          Locale l = null;
          if (locale != null) {
              String[] parts = locale.split("_", 3);
              l = new Locale(
                      parts[0],
                      parts.length > 1 ? parts[1] : "",
                      parts.length > 2 ? parts[2] : ""
              );
          }
          return LocaleProxy.create(cls, l);
      }
docs: Create the resource using the Locale provided. If the locale is null, the locale is retrieved from the
  LocaleProvider in LocaleProxy.
  
  @param cls    localization interface class
  @param <T>    localization interface class
  @param locale locale string
  @return object implementing specified class