public void addNextStageInformation(@Nonnull final SessionData data, Element command) {
        // Increment the stage number to the next stage
        data.setStage(data.getStage() + 1);
        // Return the data form of the current stage to the command requester. The
        // requester will need to specify the action to follow (e.g. execute, prev,
        // cancel, etc.) and complete the form is going "forward"
        addStageInformation(data, command);
        // Include the available actions at this stage
        addStageActions(data, command);
    }
Increments the stage number by one and adds to the command element the new data form and
new allowed actions that the user might perform.

@param data metadata and the gathered data through the command stages.
@param command the command element to be sent to the command requester.
xmppserver/src/main/java/org/jivesoftware/openfire/commands/AdHocCommand.java