GBeanMBean app = new GBeanMBean(JettyWebApplicationContext.GBEAN_INFO);
app.setAttribute("URI", URI.create(url.toString()));
app.setAttribute("ContextPath", "/test");
app.setAttribute("ComponentContext", null);
app.setAttribute("PolicyContextID", null);
UserTransactionImpl userTransaction = new UserTransactionImpl();
app.setAttribute("UserTransaction", userTransaction);
app.setReferencePatterns("Configuration", Collections.EMPTY_SET);
app.setReferencePatterns("JettyContainer", containerPatterns);
app.setReferencePatterns("TransactionManager", Collections.singleton(tmName));
app.setReferencePatterns("TrackedConnectionAssociator", Collections.singleton(tcaName));