if (wsd != null) {
for (WebApplicationExtensionDescriptor waed : wsd.getExtensions()) {
String ecl = waed.getClassName() == null ? server.getExtension(waed.getName()) : waed.getClassName();
if (ecl == null) continue;
application.addExtension(waed.getName(), ecl, waed.getSettings());
}
}
depl.set("host", host);
depl.setApplication(application);