code: private String getBaseUrlProperty(final UriInfo uriInfo) {
          final String propBaseURL = System.getProperty(JMS_BASEURL_PROP, "");
          if (propBaseURL.length() > 0 && propBaseURL.startsWith("http")) {
              final URI propBaseUri = URI.create(propBaseURL);
              if (propBaseUri.getPort() < 0) {
                  return uriInfo.getBaseUriBuilder().port(-1).uri(propBaseUri).toString();
              }
              return uriInfo.getBaseUriBuilder().uri(propBaseUri).toString();
          }
          return "";
      }
docs: Produce a baseURL for JMS events using the system property fcrepo.jms.baseUrl of the form http[s]://host[:port],
  if it exists.
  
  @param uriInfo used to build the base url
  @return String the base Url