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()); } }