public static OptionalInt getPositiveInt(final ObjectNode node, final String key) {
    return getValueAsString(node, key)
        .map(v -> OptionalInt.of(parsePositiveInt(key, v)))
        .orElse(OptionalInt.empty());
  }
Gets positive int.

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