*
* @param theKeyValuePairs
* @return
*/
Options getOptions(final List<Pair<String, String>> theKeyValuePairs) {
Options result = Options.create();
for (Pair<String, String> aPair : theKeyValuePairs) {
for (Option aRegisteredOption : mOptionsMap.keySet()) {
if (aRegisteredOption.toString().equals(aPair.first)) {
result.set(aRegisteredOption, getValue(aRegisteredOption, aPair.second));
}
}
}
return result;