154155156157158159160161
if (value.equalsIgnoreCase("yes")) { return true; } else if (value.equalsIgnoreCase("no")) { return false; } else { throw new ExpanderException("invalid value of -" + key + ": " + value + ", should be yes or no"); } }