class HelixUtils {

  public static boolean isClusterConfigEnabled(HelixManager helixManager, String key) {
    HelixConfigScope scope = newClusterConfigScope(helixManager);
    Map<String, String> configs = helixManager.getClusterManagmentTool()
        .getConfig(scope, Arrays.asList(key));
    if (configs.containsKey(key) && configs.get(key).equalsIgnoreCase(DISABLE)) {
      return false;
    }
    return true;
  }

}