class WarInitializer implements WebApplicationInitializer {

    @Override
    public void onStartup(ServletContext servletContext) throws ServletException
    {
        // Initialize all the parts individually so an extending class can override individual methods as needed.
        initContextLoaderListener(servletContext);
        initDispatchServlet(servletContext);
        initDelegatingFilterProxy(servletContext);
        initLog4JMdcLoggingFilter(servletContext);
        initCharacterEncodingFilter(servletContext);
        initRequestLoggingFilter(servletContext);
        initServletMapping(servletContext);
    }

}