if (contextRoot == null)
throw new IllegalStateException("Cannot obtain context root");
SPIProvider provider = SPIProviderResolver.getInstance().getProvider();
ServerConfigFactory spi = provider.getSPI(ServerConfigFactory.class);
ServerConfig serverConfig = spi.getServerConfig();
String host = serverConfig.getWebServiceHost();
int port = serverConfig.getWebServicePort();
int securePort = serverConfig.getWebServiceSecurePort();
for (Endpoint ep : dep.getService().getEndpoints())
{
boolean confidential = isConfidentialTransportGuarantee(dep, ep);
int currentPort = confidential ? securePort : port;
String hostAndPort = host + (currentPort > 0 ? ":" + currentPort : "");