code: public Integer convertStringToInteger(String value) {
          Integer result;
          try {
              result = Integer.valueOf(value);
          } catch (NumberFormatException e) {
              result = DEFAULT_INT_VALUE;
          }
          return result;
  
      }
docs: Convert the given value to an {@link Integer}. If the value is not in a
  valid numeric format, then a default value is returned.
  
  @param value The value to convert
  
  @return The converted numeric value
  
  @see #isInteger(String)
  @see Integer#valueOf(String)