WebApplicationContext servletAppContext = this.createServletApplicationContext();
Assert.notNull(servletAppContext,
"createServletApplicationContext() did not return an application " +
"context for servlet [" + servletName + "]");
MessageDispatcherServlet dispatcherServlet =
new MessageDispatcherServlet(servletAppContext);
dispatcherServlet.setTransformWsdlLocations(isTransformWsdlLocations());
dispatcherServlet.setTransformSchemaLocations(isTransformSchemaLocations());
ServletRegistration.Dynamic registration =
servletContext.addServlet(servletName, dispatcherServlet);
Assert.notNull(registration,