}
@NotNull
public URI getAddress() {
WebModule webModule = endpoint.getContainer().getSPI(WebModule.class);
if(webModule==null)
// this is really a bug in the container implementation
throw new WebServiceException("Container "+endpoint.getContainer()+" doesn't support "+WebModule.class);
return getAddress(webModule.getContextPath());
}