docs: private String getHostName() {
          String hostName = AccessController.doPrivileged(new PrivilegedAction<String>() {
              @Override
              public String run() {
                  try {
                      return java.net.InetAddress.getLocalHost().getCanonicalHostName().toLowerCase();
                  } catch (java.net.UnknownHostException e) {
                      return "localhost";
                  }
              }
          });
          return hostName;
      }