code: public static ResourceKey key(Class<?> clazz, String id) {
          return new ResourceKey(clazz.getName(), id);
      }
docs: Creates a resource key with given id for bundle specified by given class.
  @param clazz the class owning the bundle.
  @param id value identifier
  @return the resource key