// /!\ take care, StandardContext default host = "_" and not null or localhost
if (standardContext.getHostname() != null && !"_".equals(standardContext.getHostname())) {
webApp.host = standardContext.getHostname();
}
ApplicationParameter appParam = new ApplicationParameter();
appParam.setName(OPENEJB_WEBAPP_MODULE_ID);
appParam.setValue(webApp.moduleId);
standardContext.addApplicationParameter(appParam);
if (getContextInfo(webApp.host, webApp.contextRoot) == null) {
if (standardContext.getPath() == null) {
if (webApp.contextRoot != null && webApp.contextRoot.startsWith("/")) {