code: public static final Integer parseInteger(String value)
     {
        return (value == null || value.length() == 0 ? null : Integer.valueOf(Integer.parseInt(value)));
     }
docs: Utility method to convert a String to an Integer, and
  handles null values.
  
  @param value string representation of an integer
  @return int value