code: public static void parseAndSetOptions(
        Configuration conf, String optionKey) {
      String optionValue = conf.get(optionKey);
      if (optionValue != null) {
        RaidNode.LOG.info("Parsing option " + optionKey);
        // Parse the option value to get key:value pairs.
        String[] keyValues = optionValue.trim().split(",");
        for (String keyValue: keyValues) {
          String[] fields = keyValue.trim().split(":");
          String key = fields[0].trim();
          String value = fields[1].trim();
          conf.set(key, value);
        }
      } else {
        RaidNode.LOG.error("Option " + optionKey + " not found");
      }
    }
docs: Parse a condensed configuration option and set key:value pairs.
  @param conf the configuration object.
  @param optionKey the name of condensed option. The value corresponding
  to this should be formatted as key:value,key:value...