throws FormsException {
String attrValue = getAttribute(element, attributeName);
try {
return Integer.parseInt(attrValue);
} catch (NumberFormatException e) {
throw new FormsException("Cannot parse the value '" + attrValue + "' " +
"as an integer in the attribute '" + attributeName + "'," +
DomHelper.getLocationObject(element));
}
}