/**
  * Create a standard host.
  *
  * @return host
  */
 public Host createHost() {
   log.debug("Creating host");
   StandardHost stdHost = new StandardHost();
   stdHost.setAppBase(webappRoot);
   stdHost.setAutoDeploy(autoDeploy);
   if (domain == null) {
     stdHost.setName(name);
   } else {
     stdHost.setDomain(domain);
     // seems to require that the domain be appended to the name
     stdHost.setName(name + '.' + domain);
   }
   stdHost.setStartChildren(startChildren);
   stdHost.setUnpackWARs(unpackWARs);
   // See http://tomcat.apache.org/migration-7.html#Deployment
   stdHost.setCopyXML(true);
   return stdHost;
 }