host = "localhost";
logger.warning("using default host: " + host);
}
// TODO: instead of storing deployers, we could just lookup the right hostconfig for the server.
final HostConfig deployer = deployers.get(host);
if (isReady(deployer)) { // if not ready using directly host to avoid a NPE
// host isn't set until we call deployer.manageApp, so pass it
// ?? host is set through an event and it can be null here :(
ContextInfo contextInfo = addContextInfo(host, standardContext);
contextInfo.appInfo = appInfo;
contextInfo.deployer = deployer;
deployer.manageApp(standardContext);
} else if (hosts.containsKey(host)) {
Host theHost = hosts.get(host);
ContextInfo contextInfo = addContextInfo(host, standardContext);
contextInfo.appInfo = appInfo;