code: public static MessageDispatcherServlet createMessageDispatcherServlet(Class... contextConfigLocation) {
          StringBuilder items = new StringBuilder();
          for (Class aClass : contextConfigLocation) {
              items.append( aClass.getName());
              items.append(",");
          }
          MessageDispatcherServlet messageDispatcherServlet = new MessageDispatcherServlet();
          messageDispatcherServlet.setContextClass(AnnotationConfigWebApplicationContext.class);
          messageDispatcherServlet.setContextConfigLocation(removeEnd(items.toString(), "," ));
          messageDispatcherServlet.setTransformWsdlLocations(true);
          return messageDispatcherServlet;
      }
docs: Creates a spring-ws message dispatcher servlet
  @param contextConfigLocation The spring configuration classes
  @return A message dispatcher servlet based on the supplied configuration