code: @Deprecated
    public static String getServerAddress(Configuration conf,
        String oldBindAddressName,
        String oldPortName,
        String newBindAddressName) {
      String oldAddr = conf.get(oldBindAddressName);
      int oldPort = conf.getInt(oldPortName, 0);
      String newAddrPort = conf.get(newBindAddressName);
      if (oldAddr == null && oldPort == 0) {
        return toIpPort(createSocketAddr(newAddrPort));
      }
      InetSocketAddress newAddr = NetUtils.createSocketAddr(newAddrPort);
      if (oldAddr == null) {
        oldAddr = newAddr.getAddress().getHostAddress();
      } else {
        LOG.warn("Configuration parameter " + oldBindAddressName +
            " is deprecated. Use " + newBindAddressName + " instead.");
      }
      if (oldPort == 0) {
        oldPort = newAddr.getPort();
      } else {
        LOG.warn("Configuration parameter " + oldPortName +
            " is deprecated. Use " + newBindAddressName + " instead.");      
      }
      try {
        return toIpPort(oldAddr, oldPort);
      } catch (UnknownHostException e) {
        LOG.error("DNS not supported.");
        LOG.fatal(e);
      }
      return oldAddr + ":" + oldPort;
    }
docs: Handle the transition from pairs of attributes specifying a host and port
  to a single colon separated one.
  @param conf the configuration to check
  @param oldBindAddressName the old address attribute name
  @param oldPortName the old port attribute name
  @param newBindAddressName the new combined name
  @return the complete address from the configuration