code: protected static int parseIntParameter (String value, String invalidDataMessage)
          throws DataValidationException
      {
          try {
              return Integer.parseInt(value);
          } catch (NumberFormatException nfe) {
              throw new DataValidationException(invalidDataMessage);
          }
      }
docs: Internal method to parse integer values.