class Update extends RequestSingle {

    public final ObjectNode getFinalUpdate() {
        final ObjectNode node = getFinal();
        if (actions != null && !actions.isEmpty()) {
            final ArrayNode array = JsonHandler.createArrayNode();
            for (final Action action : actions) {
                array.add(action.getCurrentAction());
            }
            node.set(GLOBAL.ACTION.exactToken(), array);
        } else {
            node.putArray(GLOBAL.ACTION.exactToken());
        }
        return node;
    }

}