Assert.notNull(moduleDefinition, "moduleDefinition cannot be null");
Assert.notNull(servletContext, "servletContext cannot be null");
Assert.notNull(prefixMap, "prefixes cannot be null");
PrefixTreeHolder holder = getPrefixHolder();
if (holder != null) {
final String name = moduleDefinition.getName();
Set<String> prefixKeys = prefixMap.keySet();
for (String prefix : prefixKeys) {
if (logger.isDebugEnabled())
logger.debug("Contributing to holder: " + ObjectUtils.identityToString(holder) + ": " + name + "-" + prefix);
final ContextAndServletPath paths = prefixMap.get(prefix);
String servletPath = paths.getServletPath();
String contextPath = paths.getContextPath();
holder.add(name, prefix, contextPath, servletPath);
}
}
}