@SuppressWarnings("serial")
  private ServletContextInitializer errorServletRegistration() {
    ServletRegistrationBean bean =
        new ServletRegistrationBean(
            new ExampleServlet() {

              @Override
              public void service(ServletRequest request, ServletResponse response)
                  throws ServletException, IOException {
                throw new RuntimeException("Planned");
              }
            },
            "/bang");
    bean.setName("error");
    return bean;
  }
  protected final ServletContextInitializer sessionServletRegistration() {
    ServletRegistrationBean bean =
        new ServletRegistrationBean(
            new ExampleServlet() {

              @Override
              public void service(ServletRequest request, ServletResponse response)
                  throws ServletException, IOException {
                HttpSession session = ((HttpServletRequest) request).getSession(true);
                long value = System.currentTimeMillis();
                Object existing = session.getAttribute("boot");
                session.setAttribute("boot", value);
                PrintWriter writer = response.getWriter();
                writer.append(String.valueOf(existing) + ":" + value);
              }
            },
            "/session");
    bean.setName("session");
    return bean;
  }