if (anWebContext != null && anWebContext.contextRoot().length() > 0)
{
if (contextRoot != null && contextRoot.equals(anWebContext.contextRoot()) == false)
throw new IllegalStateException("Context root must be the same for all deployed endpoints");
contextRoot = anWebContext.contextRoot();
}
}
}
// #3 Use the explicit context root from webservices/context-root