{ HandlerCollection contexts = (HandlerCollection)server.getChildHandlerByClass(ContextHandlerCollection.class); if (contexts==null) contexts = (HandlerCollection)server.getChildHandlerByClass(HandlerCollection.class);
{
    public void addWebApplication(JettyPluginWebApplication webapp) throws Exception    {        HandlerCollection contexts = (HandlerCollection)server.getChildHandlerByClass(ContextHandlerCollection.class);        if (contexts==null)            contexts = (HandlerCollection)server.getChildHandlerByClass(HandlerCollection.class);        contexts.addHandler ((Handler)webapp.getProxiedObject());    }