public void addServlet(Servlet servlet, String path) {
    log.info("Adding servlet {} for path {}", servlet, path);
    ServletHolder holder = new ServletHolder(servlet);
    context.addServlet(holder, path);
    holder.setInitOrder(0);
  }
Adds the specified {@link javax.servlet.Servlet} to the server at the specified path.
@param servlet the {@link javax.servlet.Servlet} to be added.
@param path    the path for the servlet.
samza-rest/src/main/java/org/apache/samza/rest/SamzaRestService.java