code: public RegistryEntry addEntry(Class<?> resource, RegistryEntry registryEntry) {
  		resources.put(resource, registryEntry);
  		registryEntry.initialize(moduleRegistry);
  		logger.debug("Added resource {} to ResourceRegistry", resource.getName());
  		return registryEntry;
  	}
docs: Adds a new resource definition to a registry.
  
  @param resource
  class of a resource
  @param registryEntry
  resource information
  @param <T>
  type of a resource