private void initServerUrl() throws NotificationServiceException { EngineLocalConfig config = EngineLocalConfig.getInstance(); try { if (isHttpsProtocol) { serverUrl = config.getExternalHttpsUrl(HEALTH_SERVLET_PATH); } else { serverUrl = config.getExternalHttpUrl(HEALTH_SERVLET_PATH); } log.info("Engine health servlet URL is \"{}\".", serverUrl); } catch(MalformedURLException exception) { throw new NotificationServiceException("Can't get engine health servlet URL.", exception); } }