code: private List<Action> actionsOf(JsonNode actionNodes) {
          List<Action> actions = new LinkedList<Action>();
  
          if (actionNodes.isArray()) {
              for (JsonNode action : actionNodes) {
                  actions.add(new NamedAction(action.asText()));
              }
          } else {
              actions.add(new NamedAction(actionNodes.asText()));
          }
          return actions;
      }
docs: Generates a list of actions from the Action Json Node.
  
  @param actionNodes
  the action Json node to be parsed.
  @return the list of actions.