public static boolean isShowFnKeysEnabled(String appId) {
    // 1. check global-mode setting
    final Path p = new Path();
    p.myPath.add(new Path.Node("persistentDomainForName:", ourTouchBarDomain));
    String sval = p.readStringVal(ourGlobalKey);
    if (sval != null && sval.equals(ourShowFnValue)) {
      // PresentationModeGlobal = functionKeys;
      return true;
    }

    // 2. check per-app setting
    p.myPath.add(new Path.Node("objectForKey:", ourPerAppKey));
    sval = p.readStringVal(appId);
    return sval != null && sval.equals(ourShowFnValue);
  }
public static boolean isShowFnKeysEnabled(String appId)