Assert.notNull(moduleName, "moduleName cannot be null");
Assert.notNull(key, "key cannot be null");
if (this.trie.contains(key)) {
ModuleNameWithPath value = trie.findContainedValue(key);
throw new InvalidStateException("Module '" + moduleName + "' cannot use key '" + key + "', as it is already being used by module '" + value.getModuleName() + "'");
}
this.trie.insert(key, new ModuleNameWithPath(moduleName, servletPath));
List<String> list = this.contributions.get(moduleName);
if (list == null) {