code: public static final Integer getInteger(String value)
     {
        Integer result;
  
        try
        {
           result = Integer.valueOf(Integer.parseInt(value));
        }
  
        catch (Exception ex)
        {
           result = null;
        }
  
        return (result);
     }
docs: Converts a string representation of an integer into an Integer object.
  Silently ignores any parse exceptions and returns null.
  
  @param value String representation of an integer
  @return Integer instance