if (prop.getName().equals(propertyName)) {
String value = orderedPropValues[i];
if (prop.isAllowedValue(value)) {
return value;
} else {
throw new BadPropertyValueException(propertyName, value);
}
}
}
for (ConfigurationProperty configProp : configProps) {
if (configProp.getName().equals(propertyName)) {
return configProp.getValue();
}
}
// Didn't find it.
//
throw new BadPropertyValueException(propertyName);
}