Just a small note: the add(...) method on Set<T> returns false if the element already exists in the set so the contains check here is actually superfluous.  The code could be changed to:
```
if (!items.add(name)) {
    LOGGER.warn("Overriding the existing {} registered with the name: {}", type, name);
}
```