code: public static long getInt(String key, int valueIfNullOrNotParseable) {
          String value = System.getProperty(key);
          if (Strings.isNullOrEmpty(value)) {
              return valueIfNullOrNotParseable;
          }
          try {
              return Integer.parseInt(value);
          } catch (NumberFormatException e) {
              return valueIfNullOrNotParseable;
          }
      }
docs: Gets a system property int, or a replacement value if the property is
  null or blank or not parseable
  
  @param key
  @param valueIfNullOrNotParseable
  @return