protected Integer parseNumber(String number,Integer emptyValue,Integer invalidValue){
  if (StringUtils.isEmpty(number)) {
    return emptyValue;
  }
  try {
    return Integer.parseInt(number);
  }
 catch (  NumberFormatException e) {
    return invalidValue;
  }
}

protected Integer parseNumber ( String number , Integer emptyValue , Integer invalidValue ) { if ( StringUtils . isEmpty ( number ) ) { return emptyValue ; } try { return Integer . parseInt ( number ) ; } catch ( NumberFormatException e ) { return invalidValue ; } }
convenience parsing method which handles the unassigned condition .
