synchronized (connection.getConnector()) {
Container container=connection.getConnector().getContainer();
// the hostName should be in lowewr case (setName makes a toLowerCase).
Host host=(Host)container.findChild(hostName.toLowerCase());
if (host==null) {
WarpHost whost=new WarpHost();
whost.setName(hostName);
whost.setParent(container);
whost.setAppBase(connection.getConnector().getAppBase());