code: public static Integer parseInt(final String str) {
          if (null != str) {
              try {
                  return new Integer(Integer.parseInt(str.trim()));
              } catch (final Exception e) {
                  // :IGNORE:
              }
          }
          return null;
      }
docs: Parse an Integer from a String. If the String is not an integer <b>null</b> is returned and
  no exception is thrown.
  
  @param str the String to parse
  @return The Integer represented by the String, or null if it could not be parsed.