code: public void setApplicationContextClass(
  			Class<? extends ConfigurableApplicationContext> applicationContextClass) {
  		this.applicationContextClass = applicationContextClass;
  		this.webApplicationType = WebApplicationType
  				.deduceFromApplicationContext(applicationContextClass);
  	}
docs: Sets the type of Spring {@link ApplicationContext} that will be created. If not
  specified defaults to {@link #DEFAULT_SERVLET_WEB_CONTEXT_CLASS} for web based
  applications or {@link AnnotationConfigApplicationContext} for non web based
  applications.
  @param applicationContextClass the context class to set