code: protected String resolveHost(String host) {
          if ("*".equals(host)) {
              // Check configured ${defaultHostName}
              host = serverInfoMBean.getDefaultHostname();
              if (host == null || host.equals("localhost")) {
                  // This is, as a default, not useful. Use the local IP address instead.
                  host = getLocalHostIpAddress();
              }
          }
          return (host == null || host.trim().isEmpty()) ? "localhost" : host;
      }
docs: If the given host is "*", try to resolve this to a hostname or ip address
  by first checking the configured ${defaultHostName}.  If ${defaultHostName} is
  "*", "localhost", or not specified, try obtaining the local ip address via InetAddress.
  
  @return the resolved host, or "localhost" if the host could not be resolved