code: public static String getStringOption(Map<String, String> configOptions, String optionKey, String defaultValue) {
  
          String result = configOptions.get(optionKey);
          return null != result ? result : defaultValue;
      }
docs: Returns the value of an option, or the default if the value is null or the key is not part of the map.
  @param configOptions the map with the config options.
  @param optionKey the option to get the value of
  @param defaultValue the default value to return if the option is not set.
  @return the value of an option, or the default if the value is null or the key is not part of the map.