for (Endpoint ep : dep.getService().getEndpoints())
{
Class implClass = ep.getTargetBeanClass();
WebContext anWebContext = (WebContext)implClass.getAnnotation(WebContext.class);
this.validateSecuritySettings(anWebContext);
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();