code: public String makeAbsoluteURLs(String input) {
          String output = input;
  
          // First pass: convert fedora app context URLs via variable substitution
          output =
                  m_fedoraLocalAppContextPattern.matcher(output)
                          .replaceAll(m_hostContextInfo);
  
          // Second pass: convert non-fedora-app-context URLs via variable substitution
          output = m_fedoraLocalPattern.matcher(output).replaceAll(m_hostInfo);
  
          logger.debug("makeAbsoluteURLs: input={}, output={}", input, output);
          return output;
      }
docs: Make URLs that are relative to the local Fedora repository ABSOLUTE URLs.
  First, see if any URLs are expressed in relative URL syntax (beginning
  with "fedora/get" or "fedora/search") and convert these to the special
  Fedora local URL syntax ("http://local.fedora.server/..."). Then look for
  all URLs that contain the special Fedora local URL syntax and replace
  instances of this string with the actual host:port configured for the
  repository. This ensures that all forms of relative repository URLs are
  converted to proper absolute URLs that reference the hostname:port of the
  local Fedora repository. Examples:
  "http://local.fedora.server/fedora/get/demo:1/DS1" is converted to
  "http://myrepo.com:8080/fedora/get/demo:1/DS1" "fedora/get/demo:1/DS1" is
  converted to "http://myrepo.com:8080/fedora/get/demo:1/DS1"
  "http://local.fedora.server/fedora/get/demo:1/sdef:1/getFoo?in="
  http://local.fedora.server/fedora/get/demo:2/DC" is converted to
  "http://myrepo.com:8080/fedora/get/demo:1/sdef:1/getFoo?in="
  http://myrepo.com:8080/fedora/get/demo:2/DC"
  
  @param input
  @return String with all relative repository URLs and Fedora local URLs
  converted to absolute URL syntax.