private static int parsePositiveInt(final String key, final String value) {
    try {
      return PositiveNumber.fromString(value).getValue();
    } catch (IllegalArgumentException e) {
      throw new IllegalArgumentException(
          "Invalid property value, " + key + " should be a positive integer: " + value);
    }
  }
Gets positive int.

@param node the node
@param key the key
@param defaultValue the default value
@return the positive int
config/src/main/java/org/hyperledger/besu/config/JsonUtil.java