protected boolean isValidAction(String actionName) {
        for (AdHocCommand.Action action : allowedActions) {
            if (actionName.equals(action.name())) {
                return true;
            }
        }
        return false;
    }
Returns true if the specified action is valid in the current stage. The action should have
previously been offered to the user.

@param actionName the name of the action to validate.
@return true if the specified action is valid in the current stage.
xmppserver/src/main/java/org/jivesoftware/openfire/commands/SessionData.java