GeronimoTransportFactory tfactory = getTransportFactory();
assert tfactory != null : "failed to get transport factory";
try {
tfactory.setCurrentContainer(this);
EndpointImpl ep = new EndpointImpl(getBus(), target,
"http://schemas.xmlsoap.org/wsdl/soap/http", ref);
LOG.fine("publishing endpoint " + ep);
ep.publish("http://localhost/");
publishedEndpoint = ep;
assert serverTransport != null : "server transport not initialized";
} finally {
tfactory.setCurrentContainer(null);