code: protected String replaceHostWildcard(String input, NetworkAddress hostname) {
          return input.replace("$HOST", hostname.address());
      }
docs: Replaces the host wildcard from an incoming config with a proper hostname.
  
  @param input the input config.
  @param hostname the hostname to replace it with.
  @return a replaced configuration.