String cfgFile = "org/apache/cxf/jaxws/dispatch/bus-dispatch.xml";
Bus bus = new SpringBusFactory().createBus(cfgFile, true);
ServiceImpl service = new ServiceImpl(bus, getClass().getResource("/wsdl/hello_world.wsdl"),
serviceName, null);
Dispatch<Source> disp = service.createDispatch(portName, Source.class, Service.Mode.MESSAGE);
List<Interceptor<? extends Message>> interceptors = ((DispatchImpl<?>)disp).getClient()
.getInInterceptors();
boolean exists = false;
for (Interceptor<? extends Message> interceptor : interceptors) {
if (interceptor instanceof LoggingInInterceptor) {