@Override
  protected String getUseThisHostnameInstead(Configuration conf) {
    return conf.get(MASTER_HOSTNAME_KEY);
  }
Protected to have custom implementations in tests override the default ActiveMaster
implementation.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java