class UidlWriter implements Serializable {

    static JsonArray encodeExecuteJavaScriptList(
            List<PendingJavaScriptInvocation> executeJavaScriptList) {
        return executeJavaScriptList.stream()
                .map(UidlWriter::encodeExecuteJavaScript)
                .collect(JsonUtils.asArray());
    }

}