code: public void addHandler(AbstractHandler handler) {
      HandlerList handlers = new HandlerList();
      handlers.addHandler(handler);
      for (Handler h : mServer.getHandlers()) {
        handlers.addHandler(h);
      }
      mServer.setHandler(handlers);
    }
docs: Adds a handler.
  
  @param handler the handler to add