engine.setName("localengine");
engine.setDefaultHost(url.getHost());
Host host = tomcat.createHost(url.getHost(), "webapps");
host.setAutoDeploy(false);
engine.addChild(host);
String webapp = System.getProperty("webapp.directory");
StandardContext context =
(StandardContext) tomcat.createContext("", webapp);
context.setDefaultWebXml(System.getProperty("default.webxml"));