throws Throwable
{
InjectManager beanManager = InjectManager.create();
BeanFactory factory = beanManager.createBeanFactory(WebApp.class);
factory.type(WebApp.class);
factory.type(ServletContext.class);
// factory.stereotype(CauchoDeploymentLiteral.create());
beanManager.addBean(factory.singleton(webApp));
Config.setProperty("webApp", getVar());