code: public static boolean getBooleanOption(Map<String, String> configOptions, String optionKey) {
  
          if (configOptions.containsKey(optionKey)) {
              String value = configOptions.get(optionKey);
              if ((value == null) || Boolean.valueOf(value).booleanValue()) {
                  return true;
              }
          }
          return false;
      }
docs: Returns a flag, indicating if a boolean option is set, i.e., it is in the map and has value null or (case-insensitive) "true".
  @param configOptions the map with the config options.
  @param optionKey the boolean option to check.
  @return a flag, indicating if a boolean option is set