code: protected void setUpJMSInfo(final UriInfo uriInfo, final HttpHeaders headers) {
          try {
              String baseURL = getBaseUrlProperty(uriInfo);
              if (baseURL.length() == 0) {
                  baseURL = uriInfo.getBaseUri().toString();
              }
              LOGGER.debug("setting baseURL = " + baseURL);
              session.getFedoraSession().addSessionData(BASE_URL, baseURL);
              if (!StringUtils.isBlank(headers.getHeaderString("user-agent"))) {
                  session.getFedoraSession().addSessionData(USER_AGENT, headers.getHeaderString("user-agent"));
              }
          } catch (final Exception ex) {
              LOGGER.warn("Error setting baseURL", ex.getMessage());
          }
      }
docs: Set the baseURL for JMS events.
  @param uriInfo the uri info
  @param headers HTTP headers