docs: public String getServerName() {
      if (hostname != null) {
        return hostname;
      }
      boolean hasHost = urlParser != null && this.urlParser.getHostAddresses().get(0).host != null;
      return (hasHost) ? this.urlParser.getHostAddresses().get(0).host : "localhost";
    }