public static String adaptWildcardAddress(String hostname) {
    if (WILDCARD_ADDRESS_IPV4.equals(hostname) || WILDCARD_ADDRESSES_IPV6.contains(hostname)) {
      // The provided address is a wildcard address, return the wildcard address for the active IP stack
      return resolveWildcardAddress();
    } else {
      return hostname;
    }
  }
Adapts provided wildcard address for the active IP Stack. If the provided is IPv4 wildcard address, and the
active stack is IPv6, returns IPv6 wildcard address, and vice versa. If the provided address is not a wildcard 
address, returns back provided address. 
@param hostname An ip address or hostname
@return the updated wildcard address or the provided address
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/common/IPStackUtils.java