String match = appE.getAttributeValue("match");
AppDef def = appDefs.get(appName);
if (def==null) {
throw new XMLException("Cannot find defintion of application "+appName);
}
AppConf appconf = new AppConf(def,match,(Element)appE.copyOfItem(true),host.getLinks());
Iterator<Element> appLinks = appE.getElementsByName(LINK);
while (appLinks.hasNext()) {
Element linkE = appLinks.next();
String href = linkE.getAttributeValue("href");