protected static String createContextName(String serverName) {
    if (serverName.startsWith("HMaster") || serverName.startsWith("master")) {
      return "Master";
    } else if (serverName.startsWith("HRegion") || serverName.startsWith("regionserver")) {
      return "RegionServer";
    }
    return "IPC";
  }
From the name of the class that's starting up create the context that an IPC source should
register itself.
@param serverName The name of the class that's starting up.
@return The Camel Cased context name.
hbase-hadoop-compat/src/main/java/org/apache/hadoop/hbase/ipc/MetricsHBaseServerSourceFactory.java