/* */ }
/* 223 */ if (uriScheme == null) {
/* 224 */ uriScheme = "http";
/* */ }
/* 226 */ SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
/* 227 */ ServerConfig config = ((ServerConfigFactory)spiProvider.getSPI(ServerConfigFactory.class)).getServerConfig();
/* */
/* 229 */ String host = config.getWebServiceHost();
/* 230 */ int port = config.getWebServicePort();
/* 231 */ if ("https".equals(uriScheme)) {
/* 232 */ port = config.getWebServiceSecurePort();
/* */ }
/* 234 */ String urlStr = uriScheme + "://" + host + ":" + port + servicePath;
/* */ try
/* */ {
/* 237 */ return new URL(urlStr).toExternalForm();