protected void setAllowedActions(List<AdHocCommand.Action> allowedActions) {
        if (allowedActions == null) {
            allowedActions = new ArrayList<>();
        }
        this.allowedActions = allowedActions;
    }
Sets the valid actions that the user can follow from the current stage.

@param allowedActions list of valid actions.
xmppserver/src/main/java/org/jivesoftware/openfire/commands/SessionData.java