public <T>void addEntry(Class<T> resource,RegistryEntry<? extends T> registryEntry){
  resources.put(resource,registryEntry);
  registryEntry.initialize(this);
  logger.debug("Added resource {} to ResourceRegistry",resource.getName());
}

public < T > void addEntry ( Class < T > resource , RegistryEntry < ? extends T > registryEntry ) { resources . put ( resource , registryEntry ) ; registryEntry . initialize ( this ) ; logger . debug ( "Added resource {} to ResourceRegistry" , resource . getName ( ) ) ; }
adds a new resource definition to a registry .
