class WsConfigurationSupport {

	@Bean
	public DefaultMethodEndpointAdapter defaultMethodEndpointAdapter() {
		List<MethodArgumentResolver> argumentResolvers = new ArrayList<MethodArgumentResolver>();
		addArgumentResolvers(argumentResolvers);

		List<MethodReturnValueHandler> returnValueHandlers = new ArrayList<MethodReturnValueHandler>();
		addReturnValueHandlers(returnValueHandlers);

		DefaultMethodEndpointAdapter adapter = new DefaultMethodEndpointAdapter();
		adapter.setCustomMethodArgumentResolvers(argumentResolvers);
		adapter.setCustomMethodReturnValueHandlers(returnValueHandlers);

		return adapter;
	}

}