code: public static HostAndPort hostAndPort(AbstractConfig config, String key) {
      return hostAndPort(config, key, null);
    }
docs: Method is used to parse a string ConfigDef item to a HostAndPort
  
  @param config Config to read from
  @param key    ConfigItem to get the host string from.
  @return HostAndPort based on the ConfigItem.