private WebAppController createVersioningController(String name,
String contextPath,
String segmentName)
{
VersionEntry entry = getVersionEntry(segmentName);
if (entry == null)
return null;
String baseName = name;
String baseContextPath = _urlPrefix + entry.getBaseContextPath();
String versionContextPath = _urlPrefix + entry.getContextPath();
if (! baseContextPath.equals(versionContextPath))
return makeController(name, baseContextPath, versionContextPath);
VersionEntry versionEntry = getVersionEntryByRoot(entry.getRoot());
if (versionEntry == null) {
throw new ConfigException(L.l("Versioned web-app '{0}' is not valid because it does not have a concrete version. Check that the web-app is properly configured.", name));
}