if (element.getQName().equals(RuntimeTagNames.WEB_URI)) {
currentWebUri=value;
} else
if (element.getQName().equals(RuntimeTagNames.CONTEXT_ROOT)) {
if (currentWebUri!=null) {
ModuleDescriptor md = descriptor.getModuleDescriptorByUri(currentWebUri);
if (md==null) {
throw new RuntimeException("No bundle in application with uri " + currentWebUri);
}
currentWebUri=null;
if (md.getModuleType().equals(DOLUtils.warType())) {
md.setContextRoot(value);
} else {
throw new RuntimeException(currentWebUri + " uri does not point to a web bundle");
}
} else {
throw new RuntimeException("No uri provided for this context-root " + value);