public List<Pair> parameterToPair(String name, Object value) {
    List<Pair> params = new ArrayList<Pair>();

    // preconditions
    if (name == null || name.isEmpty() || value == null || value instanceof Collection) {
      return params;
    }

    params.add(new Pair(name, escapeString(parameterToString(value))));
    return params;
  }
Formats the specified query parameter to a list containing a single {@code Pair} object.

Note that {@code value} must not be a collection.

@param name The name of the parameter.
@param value The value of the parameter.
@return A list containing a single {@code Pair} object.
plc4j/drivers/ctrlx/src/main/java/org/apache/plc4x/java/ctrlx/readwrite/rest/datalayer/ApiClient.java