code: public void postDeploy() throws Throwable
     {
        if (server != null &&
            !server.isRunning() &&
            handlers != null && handlers.getHandlers() != null && handlers.getHandlers().length > 0)
        {
           try
           {
              ContextHandlerCollection chc = new ContextHandlerCollection();
              chc.setHandlers(handlers.getHandlers());
  
              server.setHandler(chc);
        
              server.start();
           }
           catch (Exception e)
           {
              log.error("Could not start Jetty webserver", e);
           }
        }
     }
docs: Post deploy
  @exception Throwable Thrown if an error occurs