protected void run() {
setBus(BusFactory.getDefaultBus());
getBus().getInInterceptors().add(new LoggingInInterceptor());
String address = "http://localhost:" + PORT + "/SoapContext/SoapPort";
Object implementor1 = new GreeterImplMixedStyle(" version1");
EndpointImpl ep1 = (EndpointImpl) Endpoint.publish(address, implementor1);
ep1.getServer().getEndpoint().put("version", "1");
ep1.getServer().getEndpoint().put("allow-multiplex-endpoint", Boolean.TRUE);
//Register a MediatorInInterceptor on this dummy service
Object implementor2 = new GreeterImplMixedStyle(" version2");
EndpointImpl ep2 = (EndpointImpl) Endpoint.publish(address, implementor2);
ep2.getServer().getEndpoint().put("version", "2");
MultipleEndpointObserver meo = (MultipleEndpointObserver)
ep1.getServer().getDestination().getMessageObserver();