code: public ServletContextHandler getHandler() {
      ServletContextHandler contextHandler = new ServletContextHandler();
      contextHandler.setContextPath(SERVLET_PATH);
      contextHandler.addServlet(new ServletHolder(new MetricsServlet(mCollectorRegistry)), "/");
      return contextHandler;
    }
docs: Gets the {@link ServletContextHandler} of the metrics servlet.
  
  @return the {@link ServletContextHandler} object