code: private String getSlaUrl(String envSlaUrl, UriInfo uriInfo) {
          String baseUrl = uriInfo.getBaseUri().toString();
          
          if (envSlaUrl == null) {
              envSlaUrl = "";
          }
          String result = ("".equals(envSlaUrl))? baseUrl : envSlaUrl;
          logger.debug("getSlaUrl(env={}, supplied={}) = {}", envSlaUrl, baseUrl, result);
          
          return result;
      }
docs: Returns base url of the sla core.
  
  If the SLA_URL env var is set, returns that value. Else, get the base url from the
  context of the current REST call. This second value may be wrong because this base url must
  be the value that the MonitoringPlatform needs to use to connect to the SLA Core.