* @throws NotConfiguredException If there is a parsing error.
*/
protected int parseRequiredInteger(String property) throws NotConfiguredException {
String value = this.properties.getProperty(property);
if (value == null) {
throw new NotConfiguredException("Property " + property + " is not set.");
} else {
try {
return Integer.parseInt(value);
} catch (NumberFormatException e) {
throw new NotConfiguredException("Value for property " + property + " is invalid: " + value);
}
}
}