code: public static String getLocalhost() {
      if (localhost == null) {
        synchronized (HostAndPort.class) {
          if (localhost == null) {
            return localhost = getLocalHostQuietly();
          }
        }
      }
      return localhost;
    }
docs: This method resolves the localhost in a 'lazy manner'.
  
  @return localhost