code: private static String formatIPv6Addr(String host) {
          if (host == null) {
              return null;
          } else {
              return (new StringBuilder()).append("[").append(host).append("]").toString();
          }
      }
docs: Format the given address as an IPv6 Address.
  
  @param host The address.
  @return The IPv6 formatted address.