docs: public <A> A register(final boolean autoSync, final String name, final Type clazz, final A rs) {
          checkResourceName(name);
          ConcurrentHashMap<String, ResourceEntry> map = this.store.get(clazz);
          if (map == null) {
              synchronized (clazz) {
                  map = this.store.get(clazz);
                  if (map == null) {
                      map = new ConcurrentHashMap();
                      store.put(clazz, map);
                  }
              }
          }
          ResourceEntry re = map.get(name);
          if (re == null) {
              map.put(name, new ResourceEntry(rs));
          } else {
              map.put(name, new ResourceEntry(rs, name, re.elements, autoSync));
          }
          return re == null ? null : (A) re.value;
      }