code: public Integer convertToInt(String value) {
          Integer result = null;
          if (value != null) {
              result = Integer.valueOf(value);
          }
          return result;
      }
docs: Determines integer value of String (so relative checks can be done).
  @param value string to convert to integer.
  @return integer value.