/**
  * Store nv list to hash map.
  *
  * @param filename the filename
  * @param options the options
  * @param dstMap the dst map
  */
 public static void storeNVListToHashMap(
     String filename, OptionList options, Map<String, String> dstMap) {
   if (options == null || options.getOption() == null || options.getOption().isEmpty()) {
     return;
   }
   List<NameValue> optionNvList = options.getOption();
   for (int i = 0; i < optionNvList.size(); i++) {
     NameValue nv = optionNvList.get(i);
     dstMap.put(nv.getName(), nv.getValue());
   }
 }
 /**
  * Gets the option list.
  *
  * @param filename the filename
  * @param parent the parent
  * @param childName the child name
  * @return the option list
  * @throws Exception the exception
  */
 public static OptionList getOptionList(String filename, Element parent, String childName)
     throws Exception {
   if (parent == null) {
     return null;
   }
   OptionList result = new OptionList();
   Element optionContainer = DomParseUtil.getSingleElement(filename, parent, childName);
   if (optionContainer == null) {
     return null;
   }
   List<NameValue> outList = result.getOption();
   putNVList(filename, childName, optionContainer, outList);
   return result;
 }