public static int getInt(final ObjectNode node, final String key, final int defaultValue) {
    return getInt(node, key).orElse(defaultValue);
  }
Gets int.

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