private double getRequiredDoubleValue(String attributeName) {
String valueString = reader.getAttributeValue(null, attributeName);
if (valueString == null) {
throw new OsmosisRuntimeException(String.format(
"Required attribute %s of the bounds element is missing", attributeName));
}
try {
return Double.parseDouble(valueString);
} catch (NumberFormatException e) {
throw new OsmosisRuntimeException(
String.format("Cannot parse the %s attribute of the bounds element", attributeName),
e);
}
}