// the webapp being deployed.
File hotDeployXmlFile=new File(filename);
if (!hotDeployXmlFile.exists())
return null;
XmlConfiguration xmlConfiguration=new XmlConfiguration(hotDeployXmlFile.toURL());
HashMap properties = new HashMap();
properties.put("Server", _contexts.getServer());
if (_configMgr!=null)
properties.putAll(_configMgr.getProperties());
xmlConfiguration.setProperties(properties);
ContextHandler context=(ContextHandler)xmlConfiguration.configure();
return context;
}