code: private static Integer decodeInt(String token) {
          try {
              return Integer.decode(token);
          } catch (NumberFormatException e) {
              return null;
          }
      }
docs: Decodes an integer string representation and returns the associated Integer or null in case
  of an invalid number format.
  
  @param token	the encoded integer
  @return the decoded Integer or null