code: public static Integer parseInteger(String value, Integer defaultValue) {
          if (isNullOrEmpty(value)) {
              return defaultValue;
          }
          return Integer.parseInt(value);
      }
docs: Parses the provided string value into an integer value.
  <p>If the string is null or empty this returns the default value.</p>
  
  @param value        value to parse
  @param defaultValue default value
  @return integer representation of provided value or default value.